~ubuntu-branches/ubuntu/utopic/vlc/utopic

« back to all changes in this revision

Viewing changes to modules/gui/macosx/misc.m

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2012-07-21 17:52:21 UTC
  • mfrom: (1.1.48) (3.5.44 sid)
  • Revision ID: package-import@ubuntu.com-20120721175221-53m5pclzo992kawy
Tags: 2.0.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * misc.m: code not specific to vlc
3
3
 *****************************************************************************
4
4
 * Copyright (C) 2003-2011 VLC authors and VideoLAN
5
 
 * $Id: 09018beeb460e771fbd5b3cb00511a7d37ce0ca3 $
 
5
 * $Id: 9c313b0c3f228ec587e9cb9bda7f0ebadf546677 $
6
6
 *
7
7
 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
8
8
 *          Felix Paul Kühne <fkuehne at videolan dot org>
513
513
 
514
514
- (void)awakeFromNib
515
515
{
516
 
    if (config_GetInt( VLCIntf, "macosx-interfacestyle" ))
 
516
    if (config_GetInt( VLCIntf, "macosx-interfacestyle" )) {
517
517
        o_knob_img = [NSImage imageNamed:@"progression-knob_dark"];
518
 
    else
 
518
        b_dark = YES;
 
519
    } else {
519
520
        o_knob_img = [NSImage imageNamed:@"progression-knob"];
 
521
        b_dark = NO;
 
522
    }
520
523
    img_rect.size = [o_knob_img size];
521
524
    img_rect.origin.x = img_rect.origin.y = 0;
522
525
}
554
557
    [[NSGraphicsContext currentContext] restoreGraphicsState];
555
558
 
556
559
    NSRect knobRect = [[self cell] knobRectFlipped:NO];
557
 
    knobRect.origin.y+=1;
 
560
    if (b_dark)
 
561
        knobRect.origin.y+=2;
 
562
    else
 
563
        knobRect.origin.y+=1;
558
564
    [self drawKnobInRect: knobRect];
559
565
}
560
566