diff options
author | Colomban Wendling <[email protected]> | 2017-04-06 15:48:27 +0200 |
---|---|---|
committer | Colomban Wendling <[email protected]> | 2017-04-06 15:48:27 +0200 |
commit | 917fcb76d14e69642df38393bc2f6a5b52d0c7ed (patch) | |
tree | 8602271d0cabbb986142c27b51570cc5a9b9bbb4 /applets | |
parent | 6fcc9d8442230648ba75fc0a60d722c7ba4eaa81 (diff) | |
download | mate-panel-917fcb76d14e69642df38393bc2f6a5b52d0c7ed.tar.bz2 mate-panel-917fcb76d14e69642df38393bc2f6a5b52d0c7ed.tar.xz |
system-tray: Properly propagate orientation changes
This fixes menu positioning on some system tray items when the panel
orientation changed since it was initially started.
Diffstat (limited to 'applets')
-rw-r--r-- | applets/notification_area/na-box.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/applets/notification_area/na-box.c b/applets/notification_area/na-box.c index d1c7982a..db9a26e4 100644 --- a/applets/notification_area/na-box.c +++ b/applets/notification_area/na-box.c @@ -243,14 +243,19 @@ na_box_realize (GtkWidget *widget) NaBox *self = NA_BOX (widget); GdkScreen *screen; GtkOrientation orientation; + NaHost *tray_host; GTK_WIDGET_CLASS (na_box_parent_class)->realize (widget); /* Instantiate the hosts now we have a screen */ screen = gtk_widget_get_screen (GTK_WIDGET (self)); orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (self)); + tray_host = na_tray_new_for_screen (screen, orientation); + g_object_bind_property (self, "orientation", + tray_host, "orientation", + G_BINDING_DEFAULT); - add_host (self, na_tray_new_for_screen (screen, orientation)); + add_host (self, tray_host); add_host (self, sn_host_v0_new ()); } |