diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2007-06-28 02:00:16 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2007-06-28 02:00:16 +0000 |
commit | 60782920e2a499710f9e829aa7ebd3ea45944856 (patch) | |
tree | 6ca8414e453c29f9ae02c504b61fdfce534d7733 /gtk/gtkbuilderparser.c | |
parent | 4110c04860479fdc92ccb70a72f43d167f164d79 (diff) | |
download | gtk+-60782920e2a499710f9e829aa7ebd3ea45944856.tar.gz |
Use the attribute name in the error message instead of the value.
2007-06-27 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkbuilderparser.c (parse_property): Use
the attribute name in the error message instead of
the value.
svn path=/trunk/; revision=18272
Diffstat (limited to 'gtk/gtkbuilderparser.c')
-rw-r--r-- | gtk/gtkbuilderparser.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c index 87fd6231aa..a619a1f507 100644 --- a/gtk/gtkbuilderparser.c +++ b/gtk/gtkbuilderparser.c @@ -211,7 +211,7 @@ parse_object (ParserData *data, constructor = g_strdup (values[i]); else { - error_invalid_attribute (data, element_name, values[i], error); + error_invalid_attribute (data, element_name, names[i], error); return; } } @@ -318,7 +318,7 @@ parse_child (ParserData *data, } } else - error_invalid_attribute (data, element_name, values[i], error); + error_invalid_attribute (data, element_name, names[i], error); } child_info->parent = (CommonInfo*)object_info; @@ -356,7 +356,7 @@ parse_property (ParserData *data, translatable = strcmp (values[i], "yes") == 0; else { - error_invalid_attribute (data, element_name, values[i], error); + error_invalid_attribute (data, element_name, names[i], error); return; } } @@ -418,7 +418,7 @@ parse_signal (ParserData *data, object = g_strdup (values[i]); else { - error_invalid_attribute (data, element_name, values[i], error); + error_invalid_attribute (data, element_name, names[i], error); return; } } @@ -480,7 +480,7 @@ parse_interface (ParserData *data, break; } else - error_invalid_attribute (data, "interface", values[i], error); + error_invalid_attribute (data, "interface", names[i], error); } } |