Skip to content
Permalink
Browse files

editable-toolbar: replace deprecated gtk_menu_popup

  • Loading branch information...
raveit65 committed May 9, 2018
1 parent 50d0a50 commit 620071bfb08e1c6646dbde0e8eca990ac6ec33db
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);

0 comments on commit 620071b

Please sign in to comment.
You can’t perform that action at this time.