From d58400cdc023dad4075134f756405d220b7f51aa Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 14 Sep 2018 12:10:00 +0200 Subject: search-tool: replace deprecated gtk_menu_popup --- gsearchtool/src/gsearchtool-callbacks.c | 8 ++++---- 1 file 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; } } -- cgit v1.2.1