Skip to content
Permalink
Browse files
editable-toolbar: replace deprecated gtk_menu_popup function
  • Loading branch information
raveit65 committed May 10, 2018
1 parent 3168191 commit 95d6f036d1fe2c8b278c7d1d4b6adf1dd8270b1e
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);

0 comments on commit 95d6f03

Please sign in to comment.