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
This commit is contained in:
Johan Dahlin 2007-06-28 02:00:16 +00:00 committed by Johan Dahlin
parent 4110c04860
commit 60782920e2
2 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,9 @@
2007-06-27 Johan Dahlin <jdahlin@async.com.br> 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.
* demos/gtk-demo/demo.ui: Set name of Help menu * demos/gtk-demo/demo.ui: Set name of Help menu
to HelpMenu to HelpMenu

View File

@ -211,7 +211,7 @@ parse_object (ParserData *data,
constructor = g_strdup (values[i]); constructor = g_strdup (values[i]);
else else
{ {
error_invalid_attribute (data, element_name, values[i], error); error_invalid_attribute (data, element_name, names[i], error);
return; return;
} }
} }
@ -318,7 +318,7 @@ parse_child (ParserData *data,
} }
} }
else 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; child_info->parent = (CommonInfo*)object_info;
@ -356,7 +356,7 @@ parse_property (ParserData *data,
translatable = strcmp (values[i], "yes") == 0; translatable = strcmp (values[i], "yes") == 0;
else else
{ {
error_invalid_attribute (data, element_name, values[i], error); error_invalid_attribute (data, element_name, names[i], error);
return; return;
} }
} }
@ -418,7 +418,7 @@ parse_signal (ParserData *data,
object = g_strdup (values[i]); object = g_strdup (values[i]);
else else
{ {
error_invalid_attribute (data, element_name, values[i], error); error_invalid_attribute (data, element_name, names[i], error);
return; return;
} }
} }
@ -480,7 +480,7 @@ parse_interface (ParserData *data,
break; break;
} }
else else
error_invalid_attribute (data, "interface", values[i], error); error_invalid_attribute (data, "interface", names[i], error);
} }
} }