summaryrefslogtreecommitdiff
path: root/libmate-panel-applet/mate-panel-applet.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmate-panel-applet/mate-panel-applet.c')
-rw-r--r--libmate-panel-applet/mate-panel-applet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c
index 788cd964..fa40c649 100644
--- a/libmate-panel-applet/mate-panel-applet.c
+++ b/libmate-panel-applet/mate-panel-applet.c
@@ -814,10 +814,10 @@ mate_panel_applet_position_menu (GtkMenu *menu,
#if GTK_CHECK_VERSION (3, 0, 0)
screen = gtk_widget_get_screen (widget);
- gtk_menu_set_screen (menu, screen);
#else
screen = gtk_window_get_screen (GTK_WINDOW (applet->priv->plug));
#endif
+ gtk_menu_set_screen (menu, screen);
#if GTK_CHECK_VERSION (3, 0, 0)
gtk_widget_get_preferred_size (GTK_WIDGET (menu), &requisition, NULL);