summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-10-30 02:07:28 +0200
committerJavier Jardón <jjardon@gnome.org>2010-10-30 02:26:24 +0200
commit217036975a1305c734e912e7c87394ee874bc6ee (patch)
tree1109c6ab1b216a6340337ba16925d389199eed43 /demos
parent8177ad320e19a5800ccb2d9d0b79dfe7dc334486 (diff)
downloadgtk+-217036975a1305c734e912e7c87394ee874bc6ee.tar.gz
Use gtk_scale_new() instead gtk_[v|h]scale_new()
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/textview.c2
-rw-r--r--demos/testpixbuf-scale.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/gtk-demo/textview.c b/demos/gtk-demo/textview.c
index 235afa9ca9..cb0af037b5 100644
--- a/demos/gtk-demo/textview.c
+++ b/demos/gtk-demo/textview.c
@@ -379,7 +379,7 @@ attach_widgets (GtkTextView *text_view)
}
else if (i == 2)
{
- widget = gtk_hscale_new (NULL);
+ widget = gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, NULL);
gtk_range_set_range (GTK_RANGE (widget), 0, 100);
gtk_widget_set_size_request (widget, 70, -1);
}
diff --git a/demos/testpixbuf-scale.c b/demos/testpixbuf-scale.c
index 7b52161907..5bca987bde 100644
--- a/demos/testpixbuf-scale.c
+++ b/demos/testpixbuf-scale.c
@@ -127,7 +127,7 @@ main(int argc, char **argv)
g_signal_connect (adjustment, "value_changed",
G_CALLBACK (overall_changed_cb), NULL);
- hscale = gtk_hscale_new (adjustment);
+ hscale = gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, adjustment);
gtk_scale_set_digits (GTK_SCALE (hscale), 0);
gtk_box_pack_start (GTK_BOX (hbox), hscale, TRUE, TRUE, 0);