summaryrefslogtreecommitdiff
path: root/applets/notification_area/na-box.c
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2017-04-06 15:18:41 +0200
committerColomban Wendling <[email protected]>2017-04-06 15:38:30 +0200
commit6fcc9d8442230648ba75fc0a60d722c7ba4eaa81 (patch)
tree3ffe5ddffa201177ea0cfe758588251f9dfc2346 /applets/notification_area/na-box.c
parent9705869fdcf0f31bc05b8454cd7ec60b7b489234 (diff)
downloadmate-panel-6fcc9d8442230648ba75fc0a60d722c7ba4eaa81.tar.bz2
mate-panel-6fcc9d8442230648ba75fc0a60d722c7ba4eaa81.tar.xz
notification-area: Fix item orientation
Properly forward orientation to the items. This especially fixes SNI items height in vertical panels, but affects several other details on SNI items.
Diffstat (limited to 'applets/notification_area/na-box.c')
-rw-r--r--applets/notification_area/na-box.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/applets/notification_area/na-box.c b/applets/notification_area/na-box.c
index 25933eea..d1c7982a 100644
--- a/applets/notification_area/na-box.c
+++ b/applets/notification_area/na-box.c
@@ -106,15 +106,15 @@ item_added_cb (NaHost *host,
g_return_if_fail (NA_IS_ITEM (item));
g_return_if_fail (NA_IS_BOX (self));
+ g_object_bind_property (self, "orientation",
+ item, "orientation",
+ G_BINDING_SYNC_CREATE);
+
self->items = g_slist_prepend (self->items, item);
gtk_box_pack_start (GTK_BOX (self), GTK_WIDGET (item), FALSE, FALSE, 0);
self->items = g_slist_sort (self->items, compare_items);
gtk_container_foreach (GTK_CONTAINER (self), reorder_items, self);
-
- g_object_bind_property (self, "orientation",
- item, "orientation",
- G_BINDING_DEFAULT);
}
static void