forked from AuroraMiddleware/gtk
builder test: Adjust expections
Dialogs no longer set a headerbar as titlebar unless use-header-bar is set to 1. Update the test to do that.
This commit is contained in:
parent
da699bcaba
commit
86cceab75d
@ -1007,6 +1007,7 @@ test_children (void)
|
|||||||
const gchar buffer2[] =
|
const gchar buffer2[] =
|
||||||
"<interface>"
|
"<interface>"
|
||||||
" <object class=\"GtkDialog\" id=\"dialog1\">"
|
" <object class=\"GtkDialog\" id=\"dialog1\">"
|
||||||
|
" <property name=\"use_header_bar\">1</property>"
|
||||||
" <child internal-child=\"vbox\">"
|
" <child internal-child=\"vbox\">"
|
||||||
" <object class=\"GtkVBox\" id=\"dialog1-vbox\">"
|
" <object class=\"GtkVBox\" id=\"dialog1-vbox\">"
|
||||||
" <property name=\"border-width\">10</property>"
|
" <property name=\"border-width\">10</property>"
|
||||||
@ -1042,7 +1043,7 @@ test_children (void)
|
|||||||
g_assert (dialog != NULL);
|
g_assert (dialog != NULL);
|
||||||
g_assert (GTK_IS_DIALOG (dialog));
|
g_assert (GTK_IS_DIALOG (dialog));
|
||||||
children = gtk_container_get_children (GTK_CONTAINER (dialog));
|
children = gtk_container_get_children (GTK_CONTAINER (dialog));
|
||||||
g_assert (g_list_length (children) == 2);
|
g_assert_cmpint (g_list_length (children), ==, 2);
|
||||||
g_list_free (children);
|
g_list_free (children);
|
||||||
|
|
||||||
vbox = gtk_builder_get_object (builder, "dialog1-vbox");
|
vbox = gtk_builder_get_object (builder, "dialog1-vbox");
|
||||||
|
Loading…
Reference in New Issue
Block a user