[glade] Revert "GladeWidget: fix rebuild() function"



commit cfef90c25bd9714c07d42def55d0d26facdd2f3e
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Fri Oct 23 17:41:45 2020 -0300

    Revert "GladeWidget: fix rebuild() function"
    
    This reverts commit 9827ed69e62475e1fd540ae2a450d6e87d94aab4.

 gladeui/glade-widget.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index 0cc70635..2b5f5437 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -2552,6 +2552,9 @@ glade_widget_rebuild (GladeWidget *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
    * the selection before rebuilding the instance.
    */
@@ -2566,9 +2569,6 @@ glade_widget_rebuild (GladeWidget *gwidget)
       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 
    * should be unset before transferring */
   l = g_list_copy (gwidget->priv->properties);


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