[gtk-mac-integration] Get Enable/Disable working again



commit e961db300301f9eb8d9e9ddc1b556ce706e28179
Author: John Ralls <jralls ceridwen us>
Date:   Fri Oct 11 14:28:09 2013 -0700

    Get Enable/Disable working again
    
    1278ca1aa2 fixed https://bugzilla.gnome.org/show_bug.cgi?id=703781
    by replacing the implementation of setEnabled to set or remove the
    activation item, making use of NSMenu's AutoenablesItems feature
    to enable and disable menu items. This feature was turned off for
    menus generated from GtkMenus. Remove that.

 src/cocoa_menu_item.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/cocoa_menu_item.c b/src/cocoa_menu_item.c
index 5d8b71b..793c254 100644
--- a/src/cocoa_menu_item.c
+++ b/src/cocoa_menu_item.c
@@ -176,7 +176,6 @@ cocoa_menu_item_update_submenu (_GNSMenuItem *cocoa_item,
       cocoa_submenu = [[[NSMenu alloc] initWithTitle: title] autorelease];
 
       [cocoa_submenu setDelegate: delegate];
-      [cocoa_submenu setAutoenablesItems: NO];
       cocoa_menu_connect (submenu, cocoa_submenu);
       /* connect the new nsmenu to the passed-in item (which lives in
          the parent nsmenu)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]