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/testpixbuf-scale.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/testpixbuf-scale.c')
-rw-r--r-- | tests/testpixbuf-scale.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/testpixbuf-scale.c b/tests/testpixbuf-scale.c index 65eb2b128d..f15c2cb80e 100644 --- a/tests/testpixbuf-scale.c +++ b/tests/testpixbuf-scale.c @@ -63,7 +63,6 @@ main(int argc, char **argv) { GtkWidget *window, *vbox; GtkWidget *combo_box; - GtkWidget *alignment; GtkWidget *hbox, *label, *hscale; GtkAdjustment *adjustment; GtkRequisition scratch_requisition; @@ -110,8 +109,8 @@ main(int argc, char **argv) G_CALLBACK (set_interp_type), NULL); - alignment = gtk_alignment_new (0.0, 0.0, 0.0, 0.5); - gtk_box_pack_start (GTK_BOX (vbox), alignment, FALSE, FALSE, 0); + gtk_widget_set_halign (combo_box, GTK_ALIGN_START); + gtk_box_pack_start (GTK_BOX (vbox), combo_box, FALSE, FALSE, 0); hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); @@ -127,7 +126,6 @@ main(int argc, char **argv) gtk_scale_set_digits (GTK_SCALE (hscale), 0); gtk_box_pack_start (GTK_BOX (hbox), hscale, TRUE, TRUE, 0); - gtk_container_add (GTK_CONTAINER (alignment), combo_box); gtk_widget_show_all (vbox); /* Compute the size without the drawing area, so we know how big to make the default size */ |