From 41e75abb620333059ceeea942fd96d95c5e0bc46 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 27 Jul 2007 12:47:34 +0300 Subject: [PATCH] Fix gtk_spin_button_set_range. Other small changes. --- src/hildon-wrappers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hildon-wrappers.c b/src/hildon-wrappers.c index 9af2d45..e62174a 100644 --- a/src/hildon-wrappers.c +++ b/src/hildon-wrappers.c @@ -111,7 +111,7 @@ void hildon_number_editor_set_value(GtkWidget * w, gint v) void hildon_number_editor_set_range(GtkWidget * w, gint min, gint max) { - gtk_range_set_range(w, min, max); + gtk_spin_button_set_range(w, min, max); } GtkWidget *hildon_controlbar_new() @@ -126,12 +126,12 @@ gint hildon_controlbar_get_value(GtkWidget * w) void hildon_controlbar_set_value(GtkWidget * w, gint v) { - gtk_range_set_value(w, v); + gtk_range_set_value(w, (gdouble)v); } void hildon_controlbar_set_range(GtkWidget * w, gint min, gint max) { - gtk_range_set_range(w, min, max); + gtk_range_set_range(w, (gdouble)min, (gdouble)max); } #else -- 2.39.5