[geany/geany] 1c83b1: osx: force resync menus when changing keybindings
Jiří Techet
git-noreply at xxxxx
Fri Apr 29 22:24:19 UTC 2016
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Wed, 23 Mar 2016 19:45:47 UTC
Commit: 1c83b18e22c20c29514ba85196022dbb8db74c52
https://github.com/geany/geany/commit/1c83b18e22c20c29514ba85196022dbb8db74c52
Log Message:
-----------
osx: force resync menus when changing keybindings
Normally menu items are updated only when adding or removing
them on osx. They are however not redrawn when just changing
keybindings so the old keybinding is displayed after the change.
Force the menu update to show the updated 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