[gedit] Don't use the global key handler



commit 645836151337c768abdc02ba43fe5d0ee20fe3e3
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Wed Dec 30 23:16:47 2009 +0100

    Don't use the global key handler
    
    This fixes problems with dialogs that don't get
    the correct key bindings because the menu is
    in the way

 gedit/gedit-window.c |    1 +
 gedit/gedit.c        |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index eaadf05..98ebbf5 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -3858,6 +3858,7 @@ setup_mac_menu (GeditWindow *window)
 	ige_mac_menu_set_preferences_menu_item (ui_manager_menu_item (window->priv->manager, "/ui/MenuBar/EditMenu/EditPreferencesMenu"));
 	
 	add_mac_root_menu (window);
+	ige_mac_menu_connect_window_key_handler (GTK_WINDOW (window));
 }
 #endif
 
diff --git a/gedit/gedit.c b/gedit/gedit.c
index 7d8b503..0a331f2 100644
--- a/gedit/gedit.c
+++ b/gedit/gedit.c
@@ -694,6 +694,10 @@ main (int argc, char *argv[])
 	gedit_debug_message (DEBUG_APP, "Init session manager");		
 	gedit_session_init ();
 
+#ifdef OS_OSX
+	ige_mac_menu_set_global_key_handler_enabled (FALSE);
+#endif
+
 	if (gedit_session_is_restored ())
 		restored = gedit_session_load ();
 



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