From 620071bfb08e1c6646dbde0e8eca990ac6ec33db Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 9 May 2018 12:18:06 +0200 Subject: editable-toolbar: replace deprecated gtk_menu_popup --- cut-n-paste/toolbar-editor/egg-editable-toolbar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cut-n-paste') diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index 5648735..9bc9405 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -358,7 +358,7 @@ popup_context_menu_cb (GtkWidget *toolbar, menu = GTK_MENU (gtk_ui_manager_get_widget (etoolbar->priv->manager, etoolbar->priv->popup_path)); g_return_if_fail (menu != NULL); - gtk_menu_popup (menu, NULL, NULL, NULL, NULL, button_number, gtk_get_current_event_time ()); + gtk_menu_popup_at_pointer (menu, NULL); g_signal_connect_object (menu, "selection-done", G_CALLBACK (popup_context_deactivate), etoolbar, 0); @@ -380,7 +380,7 @@ button_press_event_cb (GtkWidget *widget, menu = GTK_MENU (gtk_ui_manager_get_widget (etoolbar->priv->manager, etoolbar->priv->popup_path)); g_return_val_if_fail (menu != NULL, FALSE); - gtk_menu_popup (menu, NULL, NULL, NULL, NULL, event->button, event->time); + gtk_menu_popup_at_pointer (menu, (const GdkEvent*) event); g_signal_connect_object (menu, "selection-done", G_CALLBACK (popup_context_deactivate), etoolbar, 0); -- cgit v1.2.1