summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2013-05-22 15:12:44 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2013-05-22 15:12:44 -0300
commit611139d8d758a07d9a349e1f8820fc9f40816b9c (patch)
treed04d08003a6fc157aa18bf1fbb1c32f581b28188
parent86fc704c54b05a2e1a74ed92d3ed01d341ab4049 (diff)
downloadglade-611139d8d758a07d9a349e1f8820fc9f40816b9c.tar.gz
Fixed bug in optional object properties loading
-rw-r--r--gladeui/glade-property.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gladeui/glade-property.c b/gladeui/glade-property.c
index 79efc191..c15626b4 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);