[glade3] Hide any parentless widgets before assigning them as a property.



commit dbaf6efb44674d1c636c576abe509be9c21d185f
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sun Jan 9 00:20:26 2011 +0900

    Hide any parentless widgets before assigning them as a property.

 gladeui/glade-editor-property.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index c37c634..5003cd1 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -2984,6 +2984,8 @@ glade_eprop_object_show_dialog (GtkWidget * dialog_button,
 
                   if (new_object && old_object != new_object)
                     {
+		      glade_widget_hide (new_widget);
+
                       if ((old_ref =
                            glade_widget_get_parentless_widget_ref (new_widget)))
                         {



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