Commit 43db0e3a authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

* gladeui/glade-command.c: Fixed segfault introduced by my recent GladeProperty migration

	* gladeui/glade-editor-property.c: Avoid infinite recursion when committing properties more
	  aggressively (found that editing text properties now make some recursion for some reason).
parent 751b521c
......@@ -3,6 +3,11 @@
* gladeui/glade-project.c: Fixed GladeProject to only ever report widgets that are
actually in the project from the GtkTreeModel interface.
* gladeui/glade-command.c: Fixed segfault introduced by my recent GladeProperty migration
* gladeui/glade-editor-property.c: Avoid infinite recursion when committing properties more
aggressively (found that editing text properties now make some recursion for some reason).
2011-01-01 Tristan Van Berkom <tristanvb@openismus.com>
* gladeui/glade-command.[ch], Added GladeProject member to base command structure, now
......
......@@ -589,9 +589,9 @@ glade_command_set_property_description (GladeCommandSetProperty * me)
description = g_strdup_printf (_("Setting multiple properties"));
else
{
sdata = me->sdata->data;
pclass = glade_property_get_class (sdata->property);
widget = glade_property_get_widget (sdata->property);
sdata = me->sdata->data;
value_name = glade_widget_adaptor_string_from_value
(GLADE_WIDGET_ADAPTOR (pclass->handle), pclass, sdata->new_value);
......
......@@ -108,6 +108,9 @@ glade_editor_property_commit_no_callback (GladeEditorProperty * eprop,
{
g_return_if_fail (GLADE_IS_EDITOR_PROPERTY (eprop));
if (eprop->committing)
return;
g_signal_handler_block (G_OBJECT (eprop->property), eprop->changed_id);
eprop->committing = TRUE;
glade_editor_property_commit (eprop, value);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment