Commit 4829bb06 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed disappearing repeat button images introduced in...

macosx: fixed disappearing repeat button images introduced in [8f79caa3]

Closes #4886
parent 0fada6d7
...@@ -41,10 +41,6 @@ ...@@ -41,10 +41,6 @@
IBOutlet id o_btn_repeat_embed; IBOutlet id o_btn_repeat_embed;
IBOutlet id o_btn_shuffle_embed; IBOutlet id o_btn_shuffle_embed;
NSImage * o_repeat_single;
NSImage * o_repeat_all;
NSImage * o_repeat_off;
IBOutlet id o_specificTime_cancel_btn; IBOutlet id o_specificTime_cancel_btn;
IBOutlet id o_specificTime_enter_fld; IBOutlet id o_specificTime_enter_fld;
IBOutlet id o_specificTime_goTo_lbl; IBOutlet id o_specificTime_goTo_lbl;
......
/***************************************************************************** /*****************************************************************************
* controls.m: MacOS X interface module * controls.m: MacOS X interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2009 the VideoLAN team * Copyright (C) 2002-2011 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...@@ -61,9 +61,6 @@ ...@@ -61,9 +61,6 @@
[o_specificTime_ok_btn setTitle: _NS("OK")]; [o_specificTime_ok_btn setTitle: _NS("OK")];
[o_specificTime_sec_lbl setStringValue: _NS("sec.")]; [o_specificTime_sec_lbl setStringValue: _NS("sec.")];
[o_specificTime_goTo_lbl setStringValue: _NS("Jump to time")]; [o_specificTime_goTo_lbl setStringValue: _NS("Jump to time")];
o_repeat_off = [NSImage imageNamed:@"repeat_embedded"];
} }
...@@ -72,9 +69,6 @@ ...@@ -72,9 +69,6 @@
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];
[o_fs_panel release]; [o_fs_panel release];
[o_repeat_single release];
[o_repeat_all release];
[o_repeat_off release];
[super dealloc]; [super dealloc];
} }
...@@ -188,21 +182,18 @@ ...@@ -188,21 +182,18 @@
/* three little ugly helpers */ /* three little ugly helpers */
- (void)repeatOne - (void)repeatOne
{ {
[o_btn_repeat setImage: o_repeat_single]; [o_btn_repeat setImage: [NSImage imageNamed:@"repeat_single_embedded_graphite"]];
[o_btn_repeat setAlternateImage: o_repeat_all]; [o_btn_repeat setAlternateImage: [NSImage imageNamed:@"repeat_embedded_graphite"]];
[o_btn_repeat_embed setImage: [NSImage imageNamed:@"sidebarRepeatOneOn"]];
} }
- (void)repeatAll - (void)repeatAll
{ {
[o_btn_repeat setImage: o_repeat_all]; [o_btn_repeat setImage: [NSImage imageNamed:@"repeat_embedded_graphite"]];
[o_btn_repeat setAlternateImage: o_repeat_off]; [o_btn_repeat setAlternateImage: [NSImage imageNamed:@"repeat_embedded"]];
[o_btn_repeat_embed setImage: [NSImage imageNamed:@"sidebarRepeatOn"]];
} }
- (void)repeatOff - (void)repeatOff
{ {
[o_btn_repeat setImage: o_repeat_off]; [o_btn_repeat setImage: [NSImage imageNamed:@"repeat_embedded"]];
[o_btn_repeat setAlternateImage: o_repeat_single]; [o_btn_repeat setAlternateImage: [NSImage imageNamed:@"repeat_embedded_graphite"]];
[o_btn_repeat_embed setImage: [NSImage imageNamed:@"sidebarRepeat"]];
} }
- (void)shuffle - (void)shuffle
{ {
...@@ -211,9 +202,9 @@ ...@@ -211,9 +202,9 @@
var_Get( p_playlist, "random", &val ); var_Get( p_playlist, "random", &val );
[o_btn_shuffle setState: val.b_bool]; [o_btn_shuffle setState: val.b_bool];
if(val.b_bool) if(val.b_bool)
[o_btn_shuffle_embed setImage: [NSImage imageNamed:@"sidebarShuffleOn"]]; [o_btn_shuffle_embed setImage: [NSImage imageNamed:@"shuffle_embedded_graphite"]];
else else
[o_btn_shuffle_embed setImage: [NSImage imageNamed:@"sidebarShuffle"]]; [o_btn_shuffle_embed setImage: [NSImage imageNamed:@"shuffle_embedded"]];
} }
- (IBAction)repeatButtonAction:(id)sender - (IBAction)repeatButtonAction:(id)sender
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment