Commit cfef90c2 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte

Revert "GladeWidget: fix rebuild() function"

This reverts commit 9827ed69.
parent 9827ed69
...@@ -2552,6 +2552,9 @@ glade_widget_rebuild (GladeWidget *gwidget) ...@@ -2552,6 +2552,9 @@ glade_widget_rebuild (GladeWidget *gwidget)
g_object_ref (gwidget); g_object_ref (gwidget);
/* Extract and keep the child hierarchies aside... */
children = glade_widget_extract_children (gwidget);
/* Here we take care removing the widget from the project and /* Here we take care removing the widget from the project and
* the selection before rebuilding the instance. * the selection before rebuilding the instance.
*/ */
...@@ -2566,9 +2569,6 @@ glade_widget_rebuild (GladeWidget *gwidget) ...@@ -2566,9 +2569,6 @@ glade_widget_rebuild (GladeWidget *gwidget)
glade_project_remove_object (project, gwidget->priv->object); glade_project_remove_object (project, gwidget->priv->object);
} }
/* Extract and keep the child hierarchies aside... */
children = glade_widget_extract_children (gwidget);
/* parentless_widget and object properties that refer to this widget /* parentless_widget and object properties that refer to this widget
* should be unset before transferring */ * should be unset before transferring */
l = g_list_copy (gwidget->priv->properties); l = g_list_copy (gwidget->priv->properties);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment