From 1c83b18e22c20c29514ba85196022dbb8db74c52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jir=CC=8Ci=CC=81=20Techet?= Date: Wed, 23 Mar 2016 20:45:47 +0100 Subject: [PATCH] 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. --- src/prefs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/prefs.c b/src/prefs.c index cfdcb190a..fc6db39d6 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -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 */ -- 2.11.4.GIT