[gtk+] Use gtk_ruler_new() instead gtk_[v|h]ruler_new()
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Use gtk_ruler_new() instead gtk_[v|h]ruler_new()
- Date: Sat, 30 Oct 2010 00:26:50 +0000 (UTC)
commit f00f120fd7daa01904dfb3dc5248ac3793274e83
Author: Javier Jardón <jjardon gnome org>
Date: Sat Oct 30 01:41:55 2010 +0200
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 0f48e8b..4f689ad 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 14e1be4..c880007 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]