diff options
author | Saffith <[email protected]> | 2019-05-26 23:49:19 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-06 17:01:22 +0200 |
commit | a9d858fe5970e25e1fbd07efbea2012d21a36135 (patch) | |
tree | 9e3c8d0f860bcfa881e5168fe73ce2b45d30c391 /src | |
parent | a18b9a4b411c07bfb36a7443f79c7ed1298bec04 (diff) | |
download | eom-1.20.tar.bz2 eom-1.20.tar.xz |
Disconnect callbacks for "Open with" menu items before connecting new ones.1.20
Diffstat (limited to 'src')
-rw-r--r-- | src/eom-window.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/eom-window.c b/src/eom-window.c index 5cac028..49bcd59 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -217,6 +217,10 @@ static void eom_window_list_store_image_removed (GtkTreeModel *tree_model, gpointer user_data); static void eom_window_set_wallpaper (EomWindow *window, const gchar *filename, const gchar *visible_filename); static gboolean eom_window_save_images (EomWindow *window, GList *images); +static void disconnect_proxy_cb (GtkUIManager *manager, + GtkAction *action, + GtkWidget *proxy, + EomWindow *window); static void eom_window_finish_saving (EomWindow *window); static GAppInfo *get_appinfo_for_editor (EomWindow *window); @@ -3783,6 +3787,7 @@ connect_proxy_cb (GtkUIManager *manager, EomWindow *window) { if (GTK_IS_MENU_ITEM (proxy)) { + disconnect_proxy_cb (manager, action, proxy, window); g_signal_connect (proxy, "select", G_CALLBACK (menu_item_select_cb), window); g_signal_connect (proxy, "deselect", |