diff options
author | Saffith <[email protected]> | 2019-05-26 23:49:19 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-05-29 21:53:32 +0000 |
commit | c17547c4f478d81bfe764da6340b7c3d5f73c79d (patch) | |
tree | 8eeed5a0e431b51e175dd5ae6989ec6e00d18068 /src | |
parent | 13e8f1928947c240031c6f9ab2190caca984d514 (diff) | |
download | eom-c17547c4f478d81bfe764da6340b7c3d5f73c79d.tar.bz2 eom-c17547c4f478d81bfe764da6340b7c3d5f73c79d.tar.xz |
Disconnect callbacks for "Open with" menu items before connecting new ones.
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 fa47096..62624b7 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -219,6 +219,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); @@ -3882,6 +3886,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", |