[geany/geany] 05870d: Merge pull request #973 from techee/osx_keybindings

Colomban Wendling git-noreply at xxxxx
Fri Apr 29 22:22:58 UTC 2016


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Fri, 29 Apr 2016 22:22:58 UTC
Commit:      05870d9ebc409a549cc953a7148cf678147b6e83
             https://github.com/geany/geany/commit/05870d9ebc409a549cc953a7148cf678147b6e83

Log Message:
-----------
Merge pull request #973 from techee/osx_keybindings

osx: force resync menus when changing keybindings


Modified Paths:
--------------
    src/prefs.c

Modified: src/prefs.c
5 lines changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -56,6 +56,7 @@
 #include "ui_utils.h"
 #include "utils.h"
 #include "vte.h"
+#include "osx.h"
 
 #include "gtkcompat.h"
 
@@ -1197,6 +1198,10 @@ on_prefs_dialog_response(GtkDialog *dialog, gint response, gpointer user_data)
 			kb_update(&global_kb_data);
 			tools_create_insert_custom_command_menu_items();
 			keybindings_write_to_file();
+#ifdef MAC_INTEGRATION
+			/* Force re-syncing the menubar to update displayed keybindings. */
+			gtkosx_application_sync_menubar(gtkosx_application_get());
+#endif
 		}
 
 		/* Printing */



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list