From 433c776b757c5cc909d6e614ebf39dbff9379320 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sat, 7 Jul 2018 12:27:02 +0200 Subject: reload: ensure that pending updates to UI are complete The plugin tries to remove the menuentry from menu during closing eom. Using gtk_ui_manager_ensure_update () function to make sure that all pending updates to the UI have been completed. fixes https://github.com/mate-desktop/eom/issues/145 --- plugins/reload/eom-reload-plugin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/reload/eom-reload-plugin.c b/plugins/reload/eom-reload-plugin.c index 397c1c9..5db50da 100644 --- a/plugins/reload/eom-reload-plugin.c +++ b/plugins/reload/eom-reload-plugin.c @@ -141,6 +141,8 @@ eom_reload_plugin_deactivate (PeasActivatable *activatable) gtk_ui_manager_remove_ui (manager, plugin->ui_id); gtk_ui_manager_remove_action_group (manager, plugin->ui_action_group); + + gtk_ui_manager_ensure_update (manager); } static void -- cgit v1.2.1