summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-05-09 12:18:06 +0200
committerraveit65 <[email protected]>2018-05-13 22:03:02 +0200
commit620071bfb08e1c6646dbde0e8eca990ac6ec33db (patch)
tree0ffe3b7bfac47d936bbe45a2d33375f405a37a2f
parent50d0a501a9fc5ab3c0aee1450bfb4f0401392e4b (diff)
downloadeom-620071bfb08e1c6646dbde0e8eca990ac6ec33db.tar.bz2
eom-620071bfb08e1c6646dbde0e8eca990ac6ec33db.tar.xz
editable-toolbar: replace deprecated gtk_menu_popup
-rw-r--r--cut-n-paste/toolbar-editor/egg-editable-toolbar.c4
1 files changed, 2 insertions, 2 deletions
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);