From: Kaj-Michael Lang Date: Fri, 27 Jul 2007 09:47:34 +0000 (+0300) Subject: Fix gtk_spin_button_set_range. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41e75abb620333059ceeea942fd96d95c5e0bc46;p=mapper Fix gtk_spin_button_set_range. Other small changes. --- 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