summaryrefslogtreecommitdiff
path: root/gsearchtool
diff options
context:
space:
mode:
Diffstat (limited to 'gsearchtool')
-rw-r--r--gsearchtool/src/gsearchtool-callbacks.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gsearchtool/src/gsearchtool-callbacks.c b/gsearchtool/src/gsearchtool-callbacks.c
index 67dca06e..6f064a82 100644
--- a/gsearchtool/src/gsearchtool-callbacks.c
+++ b/gsearchtool/src/gsearchtool-callbacks.c
@@ -1386,8 +1386,8 @@ file_button_release_event_cb (GtkWidget * widget,
file = g_strdup (((show_app_list == TRUE) ? locale_file_first : NULL));
build_popup_menu_for_file (gsearch, file);
- gtk_menu_popup (GTK_MENU (gsearch->search_results_popup_menu), NULL, NULL, NULL, NULL,
- event->button, event->time);
+ gtk_menu_popup_at_pointer (GTK_MENU (gsearch->search_results_popup_menu),
+ (const GdkEvent*) event);
g_free (file);
}
@@ -1886,8 +1886,8 @@ key_press_cb (GtkWidget * widget,
g_list_free (list);
if (!no_files_found) {
- gtk_menu_popup (GTK_MENU (gsearch->search_results_popup_menu), NULL, NULL, NULL, NULL,
- event->keyval, event->time);
+ gtk_menu_popup_at_pointer (GTK_MENU (gsearch->search_results_popup_menu),
+ (const GdkEvent*) event);
return TRUE;
}
}