Skip to content

Commit

Permalink
panel-menu-button: replace deprecated gtk_menu_popup
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Jul 1, 2018
1 parent 6bad863 commit 0022441
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions mate-panel/panel-menu-button.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -455,13 +455,11 @@ panel_menu_button_popup_menu (PanelMenuButton *button,
screen = gtk_window_get_screen (GTK_WINDOW (button->priv->toplevel)); screen = gtk_window_get_screen (GTK_WINDOW (button->priv->toplevel));
gtk_menu_set_screen (GTK_MENU (button->priv->menu), screen); gtk_menu_set_screen (GTK_MENU (button->priv->menu), screen);


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


static void static void
Expand Down

0 comments on commit 0022441

Please sign in to comment.