summaryrefslogtreecommitdiff
path: root/gtk/tests/builder.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-06-03 13:55:49 -0400
committerMatthias Clasen <mclasen@redhat.com>2012-06-03 13:55:49 -0400
commit90b6725ffd12769cf43e594f9987de2532225759 (patch)
treea0db1628835c84bc672a81f3d917ad2052278646 /gtk/tests/builder.c
parent3501e532dadf91646b5189d6696c76ff8849782e (diff)
downloadgtk+-90b6725ffd12769cf43e594f9987de2532225759.tar.gz
Fix the infobar builder test
Diffstat (limited to 'gtk/tests/builder.c')
-rw-r--r--gtk/tests/builder.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/tests/builder.c b/gtk/tests/builder.c
index 9e5beb0ae8..af8b5817dd 100644
--- a/gtk/tests/builder.c
+++ b/gtk/tests/builder.c
@@ -2515,7 +2515,6 @@ static void
test_message_area (void)
{
GtkBuilder *builder;
- GError *error;
GObject *obj, *obj1;
const gchar buffer[] =
"<interface>"
@@ -2526,10 +2525,10 @@ test_message_area (void)
" <object class=\"GtkLabel\" id=\"content\">"
" <property name=\"label\" translatable=\"yes\">Message</property>"
" </object>"
+ " <packing>"
+ " <property name='expand'>False</property>"
+ " </packing>"
" </child>"
- " <packing>"
- " <property name='expand'>False</property>"
- " </packing>"
" </object>"
" </child>"
" <child internal-child=\"action_area\">"
@@ -2548,9 +2547,7 @@ test_message_area (void)
" </object>"
"</interface>";
- error = NULL;
builder = builder_new_from_string (buffer, -1, NULL);
- g_assert (error == NULL);
obj = gtk_builder_get_object (builder, "infobar1");
g_assert (GTK_IS_INFO_BAR (obj));
obj1 = gtk_builder_get_object (builder, "content");