summaryrefslogtreecommitdiff
path: root/tests/icles
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2012-07-03 12:47:58 +0900
committerTim-Philipp Müller <tim@centricular.net>2012-07-03 09:54:15 +0100
commitc6cb95f5b2d722b51a55c19d3552ca419e38f20b (patch)
tree254009c677eeece3f0cec08f70aca136bafa33e7 /tests/icles
parent9822ebb0b07662b8de4d673088b2537ca02e090e (diff)
tests: do not use deprecated gtk+ symbols
https://bugzilla.gnome.org/show_bug.cgi?id=679301
Diffstat (limited to 'tests/icles')
-rw-r--r--tests/icles/gdkpixbufsink-test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/icles/gdkpixbufsink-test.c b/tests/icles/gdkpixbufsink-test.c
index a09d9f135..376f67f20 100644
--- a/tests/icles/gdkpixbufsink-test.c
+++ b/tests/icles/gdkpixbufsink-test.c
@@ -283,14 +283,14 @@ run_gui (const gchar * filename)
g_signal_connect (info->win, "delete-event", G_CALLBACK (gtk_main_quit),
NULL);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
gtk_container_add (GTK_CONTAINER (info->win), vbox);
info->img = gtk_image_new ();
gtk_box_pack_start (GTK_BOX (vbox), info->img, FALSE, FALSE, 6);
- hbox = gtk_hbox_new (FALSE, 6);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 6);
info->accurate_cb = gtk_check_button_new_with_label ("accurate seek "
@@ -299,7 +299,8 @@ run_gui (const gchar * filename)
g_signal_connect (info->accurate_cb, "toggled",
G_CALLBACK (accurate_toggled_cb), info);
- info->slider = gtk_hscale_new_with_range (0.0, 1.0, 0.001);
+ info->slider = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL,
+ 0.0, 1.0, 0.001);
gtk_box_pack_start (GTK_BOX (vbox), info->slider, FALSE, FALSE, 6);
g_signal_connect (info->slider, "value-changed",
G_CALLBACK (slider_cb), info);