diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-05-23 20:42:47 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-05-23 21:32:51 -0400 |
commit | 38cbd87cac0db2f61bfe056f9296ba036f522283 (patch) | |
tree | d0a87fa5b4809b5821f1dcc88b84116327bca088 /tests/testpopover.c | |
parent | 1af417a82d9df10c58921569c428112457ae7ad6 (diff) | |
download | gtk+-38cbd87cac0db2f61bfe056f9296ba036f522283.tar.gz |
tests: Stop using GtkAlignment
Fix up all other tests to not use GtkAlignment anymore.
Diffstat (limited to 'tests/testpopover.c')
-rw-r--r-- | tests/testpopover.c | 15 |
1 files changed, 11 insertions, 4 deletions
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"); |