[glade3/glade-3-8] * gladeui/glade-property.c: Fixed glade_property_dup() to not incidentally sync the property obj
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3/glade-3-8] * gladeui/glade-property.c: Fixed glade_property_dup() to not incidentally sync the property obj
- Date: Fri, 31 Dec 2010 04:42:15 +0000 (UTC)
commit 82876113e4437c75ba58492dd19b0e5ff5c9e2d9
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Fri Dec 31 13:25:23 2010 +0900
* gladeui/glade-property.c: Fixed glade_property_dup() to not incidentally sync the property
object's value as a consequence of dupping (backend uses this to write properties with custom
values and does not expect that).
ChangeLog | 6 +++++-
gladeui/glade-property.c | 5 +++--
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 88196af..fab2685 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,7 +21,11 @@
bit of memory for large projects but no crashes.
* plugins/gtk+/glade-gtk.c: Fixed loaded state of use-action-appearance so that it always
- loads as FALSE if there is no "related-action" at load time.
+ loads as FALSE if there is no "related-action" at load time (closes bug 582882).
+
+ * gladeui/glade-property.c: Fixed glade_property_dup() to not incidentally sync the property
+ object's value as a consequence of dupping (backend uses this to write properties with custom
+ values and does not expect that).
2010-12-29 Tristan Van Berkom <tristanvb openismus com>
diff --git a/gladeui/glade-property.c b/gladeui/glade-property.c
index 7bb0c17..ad654f4 100644
--- a/gladeui/glade-property.c
+++ b/gladeui/glade-property.c
@@ -111,8 +111,9 @@ glade_property_dup_impl (GladeProperty *template_prop, GladeWidget *widget)
else
g_value_copy (template_prop->value, property->value);
- /* Need value in place here ... */
- glade_property_set_enabled (property, template_prop->enabled);
+ property->enabled = template_prop->enabled;
+ property->state = template_prop->state;
+
glade_property_set_sensitive (property, template_prop->sensitive,
template_prop->insensitive_tooltip);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]