summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-12-26 09:00:08 +0100
committerMatthias Clasen <mclasen@redhat.com>2019-01-23 19:30:46 -0500
commit494e9d750a68b8de25853d7ad908bf83d359a077 (patch)
tree2f9950a0a700d1fe60e57fba18720c53b8c549ec /testsuite
parent3a13515777dc098610185e07ad0153622b7c3d02 (diff)
downloadgtk+-494e9d750a68b8de25853d7ad908bf83d359a077.tar.gz
dialog: Expose the content area as a separate GtkBox child
This way, the "vbox" internal child does not contain anything by default. It previously did contain "internal" widgetry like the action area.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gtk/builder.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c
index 6d320bf454..d47f91e5fc 100644
--- a/testsuite/gtk/builder.c
+++ b/testsuite/gtk/builder.c
@@ -918,7 +918,7 @@ test_children (void)
"<interface>"
" <object class=\"GtkDialog\" id=\"dialog1\">"
" <property name=\"use_header_bar\">1</property>"
- " <child internal-child=\"vbox\">"
+ " <child internal-child=\"content_area\">"
" <object class=\"GtkBox\" id=\"dialog1-vbox\">"
" <property name=\"orientation\">vertical</property>"
" <child internal-child=\"action_area\">"
@@ -961,7 +961,6 @@ test_children (void)
g_assert (vbox != NULL);
g_assert (GTK_IS_BOX (vbox));
g_assert (gtk_orientable_get_orientation (GTK_ORIENTABLE (vbox)) == GTK_ORIENTATION_VERTICAL);
- g_assert (strcmp (gtk_buildable_get_name (GTK_BUILDABLE (gtk_widget_get_parent (GTK_WIDGET (vbox)))), "dialog1") == 0);
g_assert (strcmp (gtk_buildable_get_name (GTK_BUILDABLE (content_area)), "dialog1-vbox") == 0);
action_area = gtk_builder_get_object (builder, "dialog1-action_area");
@@ -1334,7 +1333,7 @@ test_dialog (void)
const gchar buffer1[] =
"<interface>"
" <object class=\"GtkDialog\" id=\"dialog1\">"
- " <child internal-child=\"vbox\">"
+ " <child internal-child=\"content_area\">"
" <object class=\"GtkBox\" id=\"dialog1-vbox\">"
" <property name=\"orientation\">vertical</property>"
" <child internal-child=\"action_area\">"