[gtk+] Fix the infobar builder test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix the infobar builder test
- Date: Sun, 3 Jun 2012 17:55:05 +0000 (UTC)
commit 90b6725ffd12769cf43e594f9987de2532225759
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 3 13:55:49 2012 -0400
Fix the infobar builder test
gtk/tests/builder.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/gtk/tests/builder.c b/gtk/tests/builder.c
index 9e5beb0..af8b581 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]