diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-03-19 21:06:38 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-03-19 21:06:38 +0000 |
commit | 489c376bf4b98f0e521f6ab4992a1c9ac7529657 (patch) | |
tree | 3b065d89aebf3147870f232f643f4af2f929d0b1 /gtk/gtkruler.c | |
parent | c5f68d2527735465da0f11013871b5b719aae405 (diff) | |
download | gdk-pixbuf-489c376bf4b98f0e521f6ab4992a1c9ac7529657.tar.gz |
Handle quoting of / with \; properly handle __ in paths, quote " and \n in
Mon Mar 19 15:53:36 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
* gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c
gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
Change float to double everywhere with the exception of 0<->1.0 alignment
and GtkCurve.
Diffstat (limited to 'gtk/gtkruler.c')
-rw-r--r-- | gtk/gtkruler.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/gtk/gtkruler.c b/gtk/gtkruler.c index 74e71a51f..4a77809f6 100644 --- a/gtk/gtkruler.c +++ b/gtk/gtkruler.c @@ -107,13 +107,13 @@ gtk_ruler_class_init (GtkRulerClass *class) class->draw_ticks = NULL; class->draw_pos = NULL; - gtk_object_add_arg_type ("GtkRuler::lower", GTK_TYPE_FLOAT, + gtk_object_add_arg_type ("GtkRuler::lower", GTK_TYPE_DOUBLE, GTK_ARG_READWRITE, ARG_LOWER); - gtk_object_add_arg_type ("GtkRuler::upper", GTK_TYPE_FLOAT, + gtk_object_add_arg_type ("GtkRuler::upper", GTK_TYPE_DOUBLE, GTK_ARG_READWRITE, ARG_UPPER); - gtk_object_add_arg_type ("GtkRuler::position", GTK_TYPE_FLOAT, + gtk_object_add_arg_type ("GtkRuler::position", GTK_TYPE_DOUBLE, GTK_ARG_READWRITE, ARG_POSITION); - gtk_object_add_arg_type ("GtkRuler::max_size", GTK_TYPE_FLOAT, + gtk_object_add_arg_type ("GtkRuler::max_size", GTK_TYPE_DOUBLE, GTK_ARG_READWRITE, ARG_MAX_SIZE); } @@ -143,20 +143,20 @@ gtk_ruler_set_arg (GtkObject *object, switch (arg_id) { case ARG_LOWER: - gtk_ruler_set_range (ruler, GTK_VALUE_FLOAT (*arg), ruler->upper, + gtk_ruler_set_range (ruler, GTK_VALUE_DOUBLE (*arg), ruler->upper, ruler->position, ruler->max_size); break; case ARG_UPPER: - gtk_ruler_set_range (ruler, ruler->lower, GTK_VALUE_FLOAT (*arg), + gtk_ruler_set_range (ruler, ruler->lower, GTK_VALUE_DOUBLE (*arg), ruler->position, ruler->max_size); break; case ARG_POSITION: gtk_ruler_set_range (ruler, ruler->lower, ruler->upper, - GTK_VALUE_FLOAT (*arg), ruler->max_size); + GTK_VALUE_DOUBLE (*arg), ruler->max_size); break; case ARG_MAX_SIZE: gtk_ruler_set_range (ruler, ruler->lower, ruler->upper, - ruler->position, GTK_VALUE_FLOAT (*arg)); + ruler->position, GTK_VALUE_DOUBLE (*arg)); break; } } @@ -171,16 +171,16 @@ gtk_ruler_get_arg (GtkObject *object, switch (arg_id) { case ARG_LOWER: - GTK_VALUE_FLOAT (*arg) = ruler->lower; + GTK_VALUE_DOUBLE (*arg) = ruler->lower; break; case ARG_UPPER: - GTK_VALUE_FLOAT (*arg) = ruler->upper; + GTK_VALUE_DOUBLE (*arg) = ruler->upper; break; case ARG_POSITION: - GTK_VALUE_FLOAT (*arg) = ruler->position; + GTK_VALUE_DOUBLE (*arg) = ruler->position; break; case ARG_MAX_SIZE: - GTK_VALUE_FLOAT (*arg) = ruler->max_size; + GTK_VALUE_DOUBLE (*arg) = ruler->max_size; break; default: arg->type = GTK_TYPE_INVALID; @@ -203,10 +203,10 @@ gtk_ruler_set_metric (GtkRuler *ruler, void gtk_ruler_set_range (GtkRuler *ruler, - gfloat lower, - gfloat upper, - gfloat position, - gfloat max_size) + gdouble lower, + gdouble upper, + gdouble position, + gdouble max_size) { g_return_if_fail (ruler != NULL); g_return_if_fail (GTK_IS_RULER (ruler)); |