summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-06-29 12:47:17 +0200
committerraveit65 <[email protected]>2018-07-01 21:06:18 +0200
commit002244141bd0205aff0aa3e7028529d1ba2ab22c (patch)
treeda79140c49f2e47c64191a0d70b63ac2afdc10e2
parent6bad8637b8f3f16fe84a68464842f49a4d038300 (diff)
downloadmate-panel-002244141bd0205aff0aa3e7028529d1ba2ab22c.tar.bz2
mate-panel-002244141bd0205aff0aa3e7028529d1ba2ab22c.tar.xz
panel-menu-button: replace deprecated gtk_menu_popup
-rw-r--r--mate-panel/panel-menu-button.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/mate-panel/panel-menu-button.c b/mate-panel/panel-menu-button.c
index 4d8e2ad2..ae6db424 100644
--- a/mate-panel/panel-menu-button.c
+++ b/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