From 38cbd87cac0db2f61bfe056f9296ba036f522283 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 23 May 2014 20:42:47 -0400 Subject: tests: Stop using GtkAlignment Fix up all other tests to not use GtkAlignment anymore. --- tests/testpopover.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'tests/testpopover.c') diff --git a/tests/testpopover.c b/tests/testpopover.c index 2f80e31da0..bcae42a7bb 100644 --- a/tests/testpopover.c +++ b/tests/testpopover.c @@ -43,7 +43,6 @@ int main (int argc, char *argv[]) GtkWidget *label; GtkWidget *check; GtkWidget *combo; - GtkWidget *align; gtk_init (&argc, &argv); @@ -57,14 +56,22 @@ int main (int argc, char *argv[]) overlay = gtk_overlay_new (); gtk_container_add (GTK_CONTAINER (win), overlay); - align = gtk_alignment_new (0.5, 0.5, 0, 0); grid = gtk_grid_new (); gtk_widget_set_halign (grid, GTK_ALIGN_FILL); gtk_widget_set_valign (grid, GTK_ALIGN_FILL); gtk_grid_set_row_spacing (GTK_GRID (grid), 10); gtk_grid_set_column_spacing (GTK_GRID (grid), 10); - gtk_container_add (GTK_CONTAINER (overlay), align); - gtk_container_add (GTK_CONTAINER (align), grid); + gtk_container_add (GTK_CONTAINER (overlay), grid); + + label = gtk_label_new (""); + gtk_widget_set_hexpand (label, TRUE); + gtk_widget_set_vexpand (label, TRUE); + gtk_grid_attach (GTK_GRID (grid), label, 0, 0, 1, 1); + + label = gtk_label_new (""); + gtk_widget_set_hexpand (label, TRUE); + gtk_widget_set_vexpand (label, TRUE); + gtk_grid_attach (GTK_GRID (grid), label, 3, 6, 1, 1); builder = gtk_builder_new_from_file ("popover.ui"); model = (GMenuModel *)gtk_builder_get_object (builder, "menu"); -- cgit v1.2.1