Commit a887c685 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix for the disabled menu's under Tiger.

Apparently menu's got smarter in Tiger. As a workaround for the old version, you should first open the Help menu and then drag to the other menu's.

This still isn't the correct way to fix it. We should attach a callback function to the autogenerated menu's and have the callback function update the menu. (but this will work for now).
parent d41216c0
...@@ -587,6 +587,7 @@ ...@@ -587,6 +587,7 @@
{ {
bEnabled = FALSE; bEnabled = FALSE;
} }
[o_main setupMenus]; /* Make sure input menu is up to date */
} }
else if( [[o_mi title] isEqualToString: _NS("Previous")] || else if( [[o_mi title] isEqualToString: _NS("Previous")] ||
[[o_mi title] isEqualToString: _NS("Next")] ) [[o_mi title] isEqualToString: _NS("Next")] )
...@@ -637,6 +638,7 @@ ...@@ -637,6 +638,7 @@
else if( [[o_mi title] isEqualToString: _NS("Mute")] ) else if( [[o_mi title] isEqualToString: _NS("Mute")] )
{ {
[o_mi setState: p_intf->p_sys->b_mute ? NSOnState : NSOffState]; [o_mi setState: p_intf->p_sys->b_mute ? NSOnState : NSOffState];
[o_main setupMenus]; /* Make sure audio menu is up to date */
} }
else if( [[o_mi title] isEqualToString: _NS("Half Size")] || else if( [[o_mi title] isEqualToString: _NS("Half Size")] ||
[[o_mi title] isEqualToString: _NS("Normal Size")] || [[o_mi title] isEqualToString: _NS("Normal Size")] ||
...@@ -683,6 +685,7 @@ ...@@ -683,6 +685,7 @@
{ {
bEnabled = FALSE; bEnabled = FALSE;
} }
[o_main setupMenus]; /* Make sure video menu is up to date */
} }
......
...@@ -1591,12 +1591,6 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1591,12 +1591,6 @@ static VLCMain *_o_sharedMainInstance = nil;
NSString *o_title = [o_mi title]; NSString *o_title = [o_mi title];
BOOL bEnabled = TRUE; BOOL bEnabled = TRUE;
if( [o_title isEqualToString: _NS("License")] )
{
/* we need to do this only once */
[self setupMenus];
}
/* Recent Items Menu */ /* Recent Items Menu */
if( [o_title isEqualToString: _NS("Clear Menu")] ) if( [o_title isEqualToString: _NS("Clear Menu")] )
{ {
......
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