From 524e70414750ea26473e80e9421efa4bfd4401d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Sat, 30 Oct 2010 01:41:55 +0200 Subject: [PATCH] Use gtk_ruler_new() instead gtk_[v|h]ruler_new() --- examples/rulers/rulers.c | 4 ++-- tests/testgtk.c | 4 ++-- 2 files changed, 4 insertions(+), 4 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", diff --git a/tests/testgtk.c b/tests/testgtk.c index 14e1be4017..c880007d61 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -5943,7 +5943,7 @@ create_rulers (GtkWidget *widget) gtk_container_add (GTK_CONTAINER (window), table); gtk_widget_show (table); - ruler = gtk_hruler_new (); + ruler = gtk_ruler_new (GTK_ORIENTATION_HORIZONTAL); gtk_ruler_set_metric (GTK_RULER (ruler), GTK_CENTIMETERS); gtk_ruler_set_range (GTK_RULER (ruler), 100, 0, 0, 20); @@ -5957,7 +5957,7 @@ create_rulers (GtkWidget *widget) gtk_widget_show (ruler); - ruler = gtk_vruler_new (); + ruler = gtk_ruler_new (GTK_ORIENTATION_VERTICAL); gtk_ruler_set_range (GTK_RULER (ruler), 5, 15, 0, 20); g_signal_connect_swapped (window,