aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/idoscalemenuitem.c3
-rw-r--r--src/idoscalemenuitem.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/idoscalemenuitem.c b/src/idoscalemenuitem.c
index 08f54e7..2f15fa9 100644
--- a/src/idoscalemenuitem.c
+++ b/src/idoscalemenuitem.c
@@ -369,11 +369,12 @@ ido_scale_menu_item_new (const gchar *label,
**/
GtkWidget*
ido_scale_menu_item_new_with_range (const gchar *label,
+ gdouble value,
gdouble min,
gdouble max,
gdouble step)
{
- GtkObject *adjustment = gtk_adjustment_new (min, min, max, step, 10 * step, 0);
+ GtkObject *adjustment = gtk_adjustment_new (value, min, max, step, 10 * step, 0);
return g_object_new (IDO_TYPE_SCALE_MENU_ITEM,
"label", label,
diff --git a/src/idoscalemenuitem.h b/src/idoscalemenuitem.h
index 4d43e96..98e333a 100644
--- a/src/idoscalemenuitem.h
+++ b/src/idoscalemenuitem.h
@@ -59,6 +59,7 @@ GType ido_scale_menu_item_get_type (void) G_GNUC_CONST;
GtkWidget *ido_scale_menu_item_new (const gchar *label,
GtkAdjustment *adjustment);
GtkWidget *ido_scale_menu_item_new_with_range (const gchar *label,
+ gdouble value,
gdouble min,
gdouble max,
gdouble step);