summaryrefslogtreecommitdiff
path: root/gsearchtool/src
diff options
context:
space:
mode:
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) {