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/testpixbuf-scale.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/testpixbuf-scale.c') 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 */ -- cgit v1.2.1