Commit fb25f92ea3b7a4675cb6ec9e04c8c580ca47fb98

Authored by Colomban Wendling
1 parent 32b06453
Exists in master

Fix orientation propagation to the items

This has little actual impact as orientation is currently only really
useful with non-square icons and those aren't common.
Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
status-notifier/sn-applet.c
... ... @@ -81,15 +81,15 @@ item_added_cb (SnHost *host,
81 81 SnItem *item,
82 82 SnApplet *sn)
83 83 {
  84 + g_object_bind_property (sn->box, "orientation",
  85 + item, "orientation",
  86 + G_BINDING_SYNC_CREATE);
  87 +
84 88 sn->items = g_slist_prepend (sn->items, item);
85 89 gtk_box_pack_start (GTK_BOX (sn->box), GTK_WIDGET (item), FALSE, FALSE, 0);
86 90  
87 91 sn->items = g_slist_sort (sn->items, compare_items);
88 92 gtk_container_foreach (GTK_CONTAINER (sn->box), reorder_items, sn);
89   -
90   - g_object_bind_property (sn->box, "orientation",
91   - item, "orientation",
92   - G_BINDING_DEFAULT);
93 93 }
94 94  
95 95 static void
... ...