summaryrefslogtreecommitdiff
path: root/plugins/reload/eom-reload-plugin.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-07-07 12:27:02 +0200
committerraveit65 <[email protected]>2018-07-08 16:10:13 +0200
commit433c776b757c5cc909d6e614ebf39dbff9379320 (patch)
treecf3befd4687f8a6830f2e2680b7a0e81bfc87e39 /plugins/reload/eom-reload-plugin.c
parent92142b6bc0bcee51f09c91d0b4cafdf03f50c76f (diff)
downloadeom-433c776b757c5cc909d6e614ebf39dbff9379320.tar.bz2
eom-433c776b757c5cc909d6e614ebf39dbff9379320.tar.xz
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
Diffstat (limited to 'plugins/reload/eom-reload-plugin.c')
-rw-r--r--plugins/reload/eom-reload-plugin.c2
1 files changed, 2 insertions, 0 deletions
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