summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2013-09-16 14:17:03 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2013-09-16 14:17:03 -0300
commitd23865ac07447723907f2fc679375a0f522111ee (patch)
tree90e154289c05e3f32511a5aafa133793ab761820
parent20593038f409120c91b8175d7d619f1f58b04c4b (diff)
downloadglade-d23865ac07447723907f2fc679375a0f522111ee.tar.gz
Added workaround for Bug 625867 "RadioButton information lost on cut+paste, add/remove parent, etc"
-rw-r--r--gladeui/glade-widget.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index c95a1bc0..2ea24573 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -627,9 +627,14 @@ glade_widget_template_params (GladeWidget * widget,
continue;
}
- if (g_param_values_cmp (pspec[i],
+ /* We only check equality on properties introduced by the same class because
+ * others properties could change its default in a derivated class
+ * so its is better to transfer every property and reset them.
+ */
+ if (pspec[i]->owner_type == glade_widget_adaptor_get_object_type (adaptor) &&
+ g_param_values_cmp (pspec[i],
glade_property_inline_value (glade_property),
- glade_property_class_get_original_default (pclass)) == 0)
+ glade_property_class_get_original_default (pclass)) == 0)
continue;
/* Not sure if it's safe to use glade_property_get_value() instead as the