2008-12-12 Claudio Saavedra <csaavedra@igalia.com>
+ * doc/hildon-sections.txt: Add below method.
+ * src/hildon-gtk.c: (+hildon_gtk_vscale_new): New vertical
+ version for the hildonized scale.
+ * src/hildon-gtk.h: Add the definition.
+
+ Fixes: NB#93744 (Tapping should jump to location on GtkScale)
+
+2008-12-12 Claudio Saavedra <csaavedra@igalia.com>
+
* doc/hildon-sections.txt: Add missing entries for new methods.
2008-12-12 Alejandro G. Castro <alex@igalia.com>
return scale;
}
+
+/**
+ * hildon_gtk_vscale_new:
+ * @void:
+ *
+ * Creates a new vertical scale widget that lets the user select
+ * a value. The value is technically a double between 0.0 and 1.0.
+ * See gtk_adjustment_configure() for reconfiguring the adjustment.
+ *
+ * The scale is hildonized, which means that a click or tap immediately
+ * jumps to the desired position, see gtk_range_set_relative_steps().
+ * Further more the value is not displayed, see gtk_scale_set_draw_value().
+ *
+ * Returns: a new hildonized #GtkVScale
+ *
+ * Since: 2.2
+ **/
+GtkWidget*
+hildon_gtk_vscale_new (void)
+{
+ GtkWidget *scale = gtk_vscale_new_with_range (0.0, 1.0, 0.1);
+ g_object_set (scale,
+ "draw-value", FALSE,
+#ifdef MAEMO_GTK
+ "relative-steps", FALSE,
+#endif
+ NULL);
+
+ return scale;
+}