diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-10-30 01:41:55 +0200 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-10-30 17:37:02 +0900 |
commit | 524e70414750ea26473e80e9421efa4bfd4401d5 (patch) | |
tree | 6ebbd1fdba73780bd81fd2ec781b1cd9406f4030 /examples | |
parent | 821c3c65787e6d006c831895b88d0b5b0a3e54e6 (diff) | |
download | gtk+-524e70414750ea26473e80e9421efa4bfd4401d5.tar.gz |
Use gtk_ruler_new() instead gtk_[v|h]ruler_new()
Diffstat (limited to 'examples')
-rw-r--r-- | examples/rulers/rulers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rulers/rulers.c b/examples/rulers/rulers.c index 0f48e8bbcc..4f689ad844 100644 --- a/examples/rulers/rulers.c +++ b/examples/rulers/rulers.c @@ -42,7 +42,7 @@ int main( int argc, /* The horizontal ruler goes on top. As the mouse moves across the * drawing area, a motion_notify_event is passed to the * appropriate event handler for the ruler. */ - hrule = gtk_hruler_new (); + hrule = gtk_ruler_new (GTK_ORIENTATION_HORIZONTAL); gtk_ruler_set_metric (GTK_RULER (hrule), GTK_PIXELS); gtk_ruler_set_range (GTK_RULER (hrule), 7, 13, 0, 20); g_signal_connect_swapped (area, "motion-notify-event", @@ -55,7 +55,7 @@ int main( int argc, /* The vertical ruler goes on the left. As the mouse moves across * the drawing area, a motion_notify_event is passed to the * appropriate event handler for the ruler. */ - vrule = gtk_vruler_new (); + vrule = gtk_ruler_new (GTK_ORIENTATION_VERTICAL); gtk_ruler_set_metric (GTK_RULER (vrule), GTK_PIXELS); gtk_ruler_set_range (GTK_RULER (vrule), 0, YSIZE, 10, YSIZE ); g_signal_connect_swapped (area, "motion-notify-event", |