summaryrefslogtreecommitdiff
path: root/cut-n-paste
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-05-04 11:45:39 +0200
committerraveit65 <[email protected]>2018-05-10 22:45:31 +0200
commit95d6f036d1fe2c8b278c7d1d4b6adf1dd8270b1e (patch)
treec4485c165f235eb39d36976b6c401cee66a8fe31 /cut-n-paste
parent3168191efb8b4407012ef26ecd338b0d88bec9b1 (diff)
downloadatril-95d6f036d1fe2c8b278c7d1d4b6adf1dd8270b1e.tar.bz2
atril-95d6f036d1fe2c8b278c7d1d4b6adf1dd8270b1e.tar.xz
editable-toolbar: replace deprecated gtk_menu_popup function
Diffstat (limited to 'cut-n-paste')
-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 c115b20d..bb60c25d 100644
--- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
+++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
@@ -367,7 +367,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);
@@ -401,7 +401,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);