[gtk+/gtkbuilder-gbinding] Fix wrong comparison, makes multiple bindings per object work
- From: Denis Washington <denisw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtkbuilder-gbinding] Fix wrong comparison, makes multiple bindings per object work
- Date: Fri, 10 Jun 2011 09:05:09 +0000 (UTC)
commit 21708559d01017a8f2c22fa5c43e9608b6d1e19f
Author: Denis Washington <denisw online de>
Date: Fri Jun 10 11:03:56 2011 +0200
Fix wrong comparison, makes multiple bindings per object work
gtk/gtkbuilderparser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index dc8d773..31e1848 100644
--- a/gtk/gtkbuilderparser.c
+++ b/gtk/gtkbuilderparser.c
@@ -1111,7 +1111,7 @@ end_element (GMarkupParseContext *context,
for (l = object_info->bindings; l; l = l->next)
{
BindingInfo *b = (BindingInfo*)l->data;
- if (strcmp (b->to, binding_info->to) != 0)
+ if (!strcmp (b->to, binding_info->to))
{
g_set_error (error,
GTK_BUILDER_ERROR,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]