summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2017-04-06 15:18:41 +0200
committermonsta <[email protected]>2017-04-10 12:19:58 +0300
commit43451505f2ab8802b7c1e7a445bf9d9f070e9e70 (patch)
tree6dc4b153448a175c0c504f6f654cb8f172d524a7
parent25a02d6988be7b5946c9da543e6703014b4d3fbf (diff)
downloadmate-panel-43451505f2ab8802b7c1e7a445bf9d9f070e9e70.tar.bz2
mate-panel-43451505f2ab8802b7c1e7a445bf9d9f070e9e70.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.
-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