On Wed, 2009-06-03 at 19:56 +0200, Sven Neumann wrote: > what's so painful about: > > GList *list = gtk_container_get_children (GTK_CONTAINER (box)); > gint pos = g_list_length (list) - 1; > > for (; list; list = list->next, pos--) > gtk_box_reorder_child (GTK_BOX (box), list->data, pos); > > I haven't tried this, but unless I am mistaken this should reverse the > order of children in a box. Seems easy enough to do and avoids the need > to introduce yet another special case in the GtkBox code. Perhaps if > this solution is not obvious enough, this should be turned into a > utility function gtk_box_reverse_children_order() ?
For the GtkBox case, this assumes that you're not going to be making any calls to pack_start() or pack_end() in the future. Otherwise you end up with the button ordering that is not independent of your orientation. -- Davyd Madeley http://www.davyd.id.au/ 08B0 341A 0B9B 08BB 2118 C060 2EDD BB4F 5191 6CDA _______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list