diff options
author | raveit65 <[email protected]> | 2018-09-14 12:10:00 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-09-23 16:32:48 +0200 |
commit | d58400cdc023dad4075134f756405d220b7f51aa (patch) | |
tree | 88d6d56c7fceb9b5f2cd43633d5c97cbc7de4dcb /gsearchtool | |
parent | fec8113ff4b73ebb752704d446d90b3502ba175d (diff) | |
download | mate-utils-d58400cdc023dad4075134f756405d220b7f51aa.tar.bz2 mate-utils-d58400cdc023dad4075134f756405d220b7f51aa.tar.xz |
search-tool: replace deprecated gtk_menu_popup
Diffstat (limited to 'gsearchtool')
-rw-r--r-- | gsearchtool/src/gsearchtool-callbacks.c | 8 |
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; } } |