summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--applets/notification_area/na-box.c7
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 ());
}