]> git.sesse.net Git - vlc/commitdiff
* Fix for the disabled menu's under Tiger.
authorDerk-Jan Hartman <hartman@videolan.org>
Sun, 10 Apr 2005 22:29:35 +0000 (22:29 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 10 Apr 2005 22:29:35 +0000 (22:29 +0000)
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).

modules/gui/macosx/controls.m
modules/gui/macosx/intf.m

index 78de7cddd3f65b1b3e959e9947cb0b71e8fca734..b70b5c8a2315a0565861256f5e42817e94dcdde6 100644 (file)
         {
             bEnabled = FALSE;
         }
+               [o_main setupMenus]; /* Make sure input menu is up to date */
     }
     else if( [[o_mi title] isEqualToString: _NS("Previous")] ||
              [[o_mi title] isEqualToString: _NS("Next")] )
     else if( [[o_mi title] isEqualToString: _NS("Mute")] ) 
     {
         [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")] ||
                 [[o_mi title] isEqualToString: _NS("Normal Size")] ||
         {
             bEnabled = FALSE;
         }
+               [o_main setupMenus]; /* Make sure video menu is up to date */
     }
 
 
index 1cee2881aed40f93a08bd5ffed46c675eefbaeaf..2e2f1cbd3b00a6ac2b68fd8e823e013cabf33ea7 100644 (file)
@@ -1591,12 +1591,6 @@ static VLCMain *_o_sharedMainInstance = nil;
     NSString *o_title = [o_mi title];
     BOOL bEnabled = TRUE;
 
-    if( [o_title isEqualToString: _NS("License")] )
-    {
-        /* we need to do this only once */
-        [self setupMenus];
-    }
-
     /* Recent Items Menu */
     if( [o_title isEqualToString: _NS("Clear Menu")] )
     {