summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilderparser.c
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2007-10-24 09:46:31 +0000
committerJohan Dahlin <johan@src.gnome.org>2007-10-24 09:46:31 +0000
commit1d332bbb44f68165b46c119cd281774ea76d1a31 (patch)
tree1df5f1be6edbf1eba9d8aa8d53bea706eea0955b /gtk/gtkbuilderparser.c
parent9e3c937175e8302bfb1f90090e25e7ecd525130e (diff)
downloadgdk-pixbuf-1d332bbb44f68165b46c119cd281774ea76d1a31.tar.gz
Allow empty property nodes so we can set empty strings. (#486420, Xavier
2007-10-24 Johan Dahlin <jdahlin@async.com.br> * gtk/gtkbuilderparser.c (end_element): Allow empty property nodes so we can set empty strings. (#486420, Xavier Claessens) svn path=/trunk/; revision=18943
Diffstat (limited to 'gtk/gtkbuilderparser.c')
-rw-r--r--gtk/gtkbuilderparser.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index 8833f397d..af3a826fd 100644
--- a/gtk/gtkbuilderparser.c
+++ b/gtk/gtkbuilderparser.c
@@ -139,24 +139,6 @@ error_invalid_tag (ParserData *data,
line_number, char_number, tag);
}
-static void
-error_missing_property_value (ParserData *data,
- GError **error)
-{
- gint line_number, char_number;
-
- g_markup_parse_context_get_position (data->ctx,
- &line_number,
- &char_number);
-
- g_set_error (error,
- GTK_BUILDER_ERROR,
- GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE,
- "%s:%d:%d <property> must have a value set",
- data->filename,
- line_number, char_number);
-}
-
gboolean
_gtk_builder_boolean_from_string (const gchar *string,
gboolean *value,
@@ -799,15 +781,6 @@ end_element (GMarkupParseContext *context,
PropertyInfo *prop_info = state_pop_info (data, PropertyInfo);
CommonInfo *info = state_peek_info (data, CommonInfo);
- if (!prop_info->data)
- {
- error_missing_property_value (data, error);
- free_property_info (prop_info);
- if (strcmp (info->tag.name, "object") == 0)
- free_object_info((ObjectInfo*)info);
- return;
- }
-
/* Normal properties */
if (strcmp (info->tag.name, "object") == 0)
{