summaryrefslogtreecommitdiff
path: root/tests/testfilechooserbutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-05-23 20:42:47 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-05-23 21:32:51 -0400
commit38cbd87cac0db2f61bfe056f9296ba036f522283 (patch)
treed0a87fa5b4809b5821f1dcc88b84116327bca088 /tests/testfilechooserbutton.c
parent1af417a82d9df10c58921569c428112457ae7ad6 (diff)
downloadgtk+-38cbd87cac0db2f61bfe056f9296ba036f522283.tar.gz
tests: Stop using GtkAlignment
Fix up all other tests to not use GtkAlignment anymore.
Diffstat (limited to 'tests/testfilechooserbutton.c')
-rw-r--r--tests/testfilechooserbutton.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testfilechooserbutton.c b/tests/testfilechooserbutton.c
index 1f30f4a4d3..1a4b6b945d 100644
--- a/tests/testfilechooserbutton.c
+++ b/tests/testfilechooserbutton.c
@@ -223,7 +223,7 @@ int
main (int argc,
char *argv[])
{
- GtkWidget *win, *vbox, *frame, *alignment, *group_box;
+ GtkWidget *win, *vbox, *frame, *group_box;
GtkWidget *hbox, *label, *chooser, *button;
GtkSizeGroup *label_group;
GOptionContext *context;
@@ -258,14 +258,14 @@ main (int argc,
gtk_label_set_use_markup (GTK_LABEL (gtk_frame_get_label_widget (GTK_FRAME (frame))), TRUE);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
- alignment = gtk_alignment_new (0.0, 0.0, 1.0, 1.0);
- gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 6, 0, 12, 0);
- gtk_container_add (GTK_CONTAINER (frame), alignment);
+ gtk_widget_set_halign (frame, GTK_ALIGN_FILL);
+ gtk_widget_set_valign (frame, GTK_ALIGN_FILL);
+ g_object_set (frame, "margin-top", 6, "margin-start", 12, NULL);
label_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
group_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
- gtk_container_add (GTK_CONTAINER (alignment), group_box);
+ gtk_container_add (GTK_CONTAINER (frame), group_box);
/* OPEN */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);