[glade] Fixed bug in optional object properties loading



commit 611139d8d758a07d9a349e1f8820fc9f40816b9c
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Wed May 22 15:12:44 2013 -0300

    Fixed bug in optional object properties loading

 gladeui/glade-property.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gladeui/glade-property.c b/gladeui/glade-property.c
index 79efc19..c15626b 100644
--- a/gladeui/glade-property.c
+++ b/gladeui/glade-property.c
@@ -1128,6 +1128,11 @@ glade_property_read (GladeProperty * property,
   if (!(value = glade_xml_get_content (prop)))
     return;
 
+  /* If an optional property is specified in the
+   * glade file, its enabled
+   */
+  property->priv->enabled = TRUE;
+  
   if (glade_property_class_is_object (property->priv->klass))
     {
       /* we must synchronize this directly after loading this project
@@ -1139,11 +1144,6 @@ glade_property_read (GladeProperty * property,
     }
   else
     {
-      /* If an optional property is specified in the
-       * glade file, its enabled
-       */
-      property->priv->enabled = TRUE;
-
       gvalue = 
        glade_property_class_make_gvalue_from_string (property->priv->klass, value, project);
 


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