summaryrefslogtreecommitdiff
path: root/libmate-panel-applet
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2014-09-18 15:17:05 +0200
committerGert Wollny <[email protected]>2014-09-18 15:17:05 +0200
commit3f67cbdfeaa53820ed690dd25f52dc162e7511e2 (patch)
treee5e69986fb46f69ddc85fdfa37039c590a18865c /libmate-panel-applet
parent835dbc1cdb8848e3f9651ea497e89b77493ce1d9 (diff)
downloadmate-panel-3f67cbdfeaa53820ed690dd25f52dc162e7511e2.tar.bz2
mate-panel-3f67cbdfeaa53820ed690dd25f52dc162e7511e2.tar.xz
Set screen of context menu also in gtk2 code path Closes: #234
Diffstat (limited to 'libmate-panel-applet')
-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);