libegg r877 - in trunk: . libegg/toolpalette



Author: jap
Date: Sun Jun  1 09:36:27 2008
New Revision: 877
URL: http://svn.gnome.org/viewvc/libegg?rev=877&view=rev

Log:
2008-06-01  Jan Arne Petersen  <jpetersen openismus com>

	* libegg/toolpalette/testtoolpalette.c (palette_drop_item): Add
	support for the new child properties to testtoolpalette.



Modified:
   trunk/ChangeLog
   trunk/libegg/toolpalette/testtoolpalette.c

Modified: trunk/libegg/toolpalette/testtoolpalette.c
==============================================================================
--- trunk/libegg/toolpalette/testtoolpalette.c	(original)
+++ trunk/libegg/toolpalette/testtoolpalette.c	Sun Jun  1 09:36:27 2008
@@ -116,10 +116,24 @@
 
   if (EGG_TOOL_ITEM_GROUP (drag_group) != drop_group)
     {
+      gboolean homogeneous, expand, fill, new_row;
+      
       g_object_ref (drag_item);
+      gtk_container_child_get (GTK_CONTAINER (drag_group), GTK_WIDGET (drag_item),
+                               "homogeneous", &homogeneous,
+                               "expand", &expand,
+                               "fill", &fill,
+                               "new-row", &new_row,
+                               NULL);
       gtk_container_remove (GTK_CONTAINER (drag_group), GTK_WIDGET (drag_item));
       egg_tool_item_group_insert (EGG_TOOL_ITEM_GROUP (drop_group),
                                   drag_item, drop_position);
+      gtk_container_child_set (GTK_CONTAINER (drop_group), GTK_WIDGET (drag_item),
+                               "homogeneous", homogeneous,
+                               "expand", expand,
+                               "fill", fill,
+                               "new-row", new_row,
+                               NULL);
       g_object_unref (drag_item);
     }
   else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]