diff options
author | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2012-05-18 16:05:16 -0300 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2012-05-18 18:09:36 -0300 |
commit | a893e3ce1d69e67215efdeb0d7095645e806f201 (patch) | |
tree | b959b5674216c5c625bd9de18788f4dd213302b0 /gtk/gtkinfobar.c | |
parent | f4378aa19e250862197d6caad17030b3e1f0cd9e (diff) | |
download | gtk+-a893e3ce1d69e67215efdeb0d7095645e806f201.tar.gz |
Chain up custom_tag_start() propertly.
Fixes bug #675899 "Infobar not loadable by GTKBuilder (using python gi introspection)"
Diffstat (limited to 'gtk/gtkinfobar.c')
-rw-r--r-- | gtk/gtkinfobar.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c index 26a4995831..a3a877da23 100644 --- a/gtk/gtkinfobar.c +++ b/gtk/gtkinfobar.c @@ -1012,10 +1012,11 @@ gtk_info_bar_buildable_custom_tag_start (GtkBuildable *buildable, { ActionWidgetsSubParserData *parser_data; - if (child) - return FALSE; + if (parent_buildable_iface->custom_tag_start (buildable, builder, child, + tagname, parser, data)) + return TRUE; - if (strcmp (tagname, "action-widgets") == 0) + if (!child && strcmp (tagname, "action-widgets") == 0) { parser_data = g_slice_new0 (ActionWidgetsSubParserData); parser_data->info_bar = GTK_INFO_BAR (buildable); @@ -1026,8 +1027,7 @@ gtk_info_bar_buildable_custom_tag_start (GtkBuildable *buildable, return TRUE; } - return parent_buildable_iface->custom_tag_start (buildable, builder, child, - tagname, parser, data); + return FALSE; } static void |