[glade] Let the backend reload the real value if one was rejected by a verify function
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Let the backend reload the real value if one was rejected by a verify function
- Date: Thu, 15 Dec 2011 20:50:41 +0000 (UTC)
commit 2bbb3d46d8af70641c54ba3360f6303ce1ed27cd
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Thu Dec 15 17:36:01 2011 -0300
Let the backend reload the real value if one was rejected by a verify function
gladeui/glade-editor-property.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index 3aeb4a6..d390a25 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -123,12 +123,8 @@ glade_editor_property_commit_common (GladeEditorProperty * eprop,
/* If the value was denied by a verify function, we'll have to
* reload the real value.
*/
- if (glade_property_equals_value (eprop->priv->property, value))
+ if (!glade_property_equals_value (eprop->priv->property, value))
glade_editor_property_load (eprop, eprop->priv->property);
- else
- /* publish a value change to those interested */
- g_signal_emit (G_OBJECT (eprop), glade_eprop_signals[CHANGED], 0,
- eprop->priv->property);
}
void
@@ -3392,9 +3388,6 @@ glade_editor_property_load (GladeEditorProperty * eprop,
g_return_if_fail (GLADE_IS_EDITOR_PROPERTY (eprop));
g_return_if_fail (property == NULL || GLADE_IS_PROPERTY (property));
- if (eprop->priv->committing)
- return;
-
eprop->priv->loading = TRUE;
GLADE_EDITOR_PROPERTY_GET_CLASS (eprop)->load (eprop, property);
eprop->priv->loading = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]