summaryrefslogtreecommitdiff
path: root/gsearchtool/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2020-07-08 11:55:00 +0200
committerZenWalker <[email protected]>2020-07-12 02:42:44 +0200
commit3e6ecc3ba9c1d7a2fe8501e6e95aa793f274a120 (patch)
treed70c535d0d71f80cfabeb53691336837834618ea /gsearchtool/src
parent382eb97c5371b4b01f20bb7443e990760ec2fb04 (diff)
downloadmate-utils-3e6ecc3ba9c1d7a2fe8501e6e95aa793f274a120.tar.bz2
mate-utils-3e6ecc3ba9c1d7a2fe8501e6e95aa793f274a120.tar.xz
gsearchtool: Fix "open with" behavior
Fixes https://github.com/mate-desktop/mate-utils/issues/298
Diffstat (limited to 'gsearchtool/src')
-rw-r--r--gsearchtool/src/gsearchtool-callbacks.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gsearchtool/src/gsearchtool-callbacks.c b/gsearchtool/src/gsearchtool-callbacks.c
index c6d75508..7b915658 100644
--- a/gsearchtool/src/gsearchtool-callbacks.c
+++ b/gsearchtool/src/gsearchtool-callbacks.c
@@ -1228,9 +1228,6 @@ build_popup_menu_for_file (GSearchWindow * gsearch,
gboolean icon_done = FALSE;
- g_object_set_data_full (G_OBJECT (new1), "app", (GAppInfo *)list->data,
- g_object_unref);
-
if (list_length >= 4) {
if (g_app_info_get_icon ((GAppInfo *)list->data) != NULL) {
@@ -1289,6 +1286,8 @@ build_popup_menu_for_file (GSearchWindow * gsearch,
g_free (str);
gtk_widget_show (new1);
+ g_object_set_data_full (G_OBJECT (new1), "app", (GAppInfo *)list->data,
+ g_object_unref);
}
if (list_length >= 2) {