summaryrefslogtreecommitdiff
path: root/applets/notification_area/status-notifier/sn-item.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-10-16 00:08:41 -0400
committerraveit65 <[email protected]>2017-11-07 21:39:17 +0100
commit5872276595223946c196bf0387aad20a27452ef9 (patch)
tree0b6ce41912015f539fa2194968c3ed1aa625b915 /applets/notification_area/status-notifier/sn-item.c
parentaf2fe7cf8f5678737060f96616ebc8a5ccf34f1e (diff)
downloadmate-panel-5872276595223946c196bf0387aad20a27452ef9.tar.bz2
mate-panel-5872276595223946c196bf0387aad20a27452ef9.tar.xz
Apply position fix on popup to GTK 3.20 and earlier
Diffstat (limited to 'applets/notification_area/status-notifier/sn-item.c')
-rw-r--r--applets/notification_area/status-notifier/sn-item.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/applets/notification_area/status-notifier/sn-item.c b/applets/notification_area/status-notifier/sn-item.c
index 5a523d55..a6875316 100644
--- a/applets/notification_area/status-notifier/sn-item.c
+++ b/applets/notification_area/status-notifier/sn-item.c
@@ -266,6 +266,8 @@ sn_item_button_press_event (GtkWidget *widget,
gtk_menu_popup (priv->menu, NULL, NULL,
sn_item_popup_menu_position_func, widget,
event->button, event->time);
+ /*Fix positioning if size changed since last shown*/
+ gtk_menu_reposition(priv->menu);
#endif
}
else
@@ -318,6 +320,8 @@ sn_item_popup_menu (GtkWidget *widget)
gtk_menu_popup (priv->menu, NULL, NULL,
sn_item_popup_menu_position_func, widget,
button, active_time);
+ /*Fix positioning if size changed since last shown*/
+ gtk_menu_reposition(priv->menu);
#endif
}
else