Skip to content
Permalink
Browse files

panel-menu-button: replace deprecated gtk_menu_popup

  • Loading branch information...
raveit65 committed Jun 29, 2018
1 parent 6bad863 commit 002244141bd0205aff0aa3e7028529d1ba2ab22c
Showing with 5 additions and 7 deletions.
  1. +5 −7 mate-panel/panel-menu-button.c
@@ -455,13 +455,11 @@ panel_menu_button_popup_menu (PanelMenuButton *button,
screen = gtk_window_get_screen (GTK_WINDOW (button->priv->toplevel));
gtk_menu_set_screen (GTK_MENU (button->priv->menu), screen);

gtk_menu_popup (GTK_MENU (button->priv->menu),
NULL,
NULL,
(GtkMenuPositionFunc) mate_panel_applet_position_menu,
GTK_WIDGET (button),
n_button,
activate_time);
gtk_menu_popup_at_widget (GTK_MENU (button->priv->menu),
GTK_WIDGET (button),
GDK_GRAVITY_SOUTH_WEST,
GDK_GRAVITY_NORTH_WEST,
NULL);
}

static void

0 comments on commit 0022441

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