Skip to content

Commit

Permalink
editable-toolbar: replace deprecated gtk_menu_popup function
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed May 10, 2018
1 parent 3168191 commit 95d6f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cut-n-paste/toolbar-editor/egg-editable-toolbar.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 95d6f03

Please sign in to comment.