Skip to content

Commit 0022441

Browse files
author
raveit65
committed
panel-menu-button: replace deprecated gtk_menu_popup
1 parent 6bad863 commit 0022441

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

mate-panel/panel-menu-button.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -455,13 +455,11 @@ panel_menu_button_popup_menu (PanelMenuButton *button,
455455
screen = gtk_window_get_screen (GTK_WINDOW (button->priv->toplevel));
456456
gtk_menu_set_screen (GTK_MENU (button->priv->menu), screen);
457457

458-
gtk_menu_popup (GTK_MENU (button->priv->menu),
459-
NULL,
460-
NULL,
461-
(GtkMenuPositionFunc) mate_panel_applet_position_menu,
462-
GTK_WIDGET (button),
463-
n_button,
464-
activate_time);
458+
gtk_menu_popup_at_widget (GTK_MENU (button->priv->menu),
459+
GTK_WIDGET (button),
460+
GDK_GRAVITY_SOUTH_WEST,
461+
GDK_GRAVITY_NORTH_WEST,
462+
NULL);
465463
}
466464

467465
static void

0 commit comments

Comments
 (0)