summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@gnome.org>2008-03-17 19:23:03 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2008-03-17 19:23:03 +0000
commit82358456e04897a96749e0a43f1cf4b518571d27 (patch)
tree91d7f76bf87ec34aef720b635a8476326e1b32bd
parentadded comment on a string in order clarify its meaning for translators (diff)
downloadzenity-82358456e04897a96749e0a43f1cf4b518571d27.tar.gz
zenity-82358456e04897a96749e0a43f1cf4b518571d27.tar.bz2
zenity-82358456e04897a96749e0a43f1cf4b518571d27.zip
set value range before setting value in order to correctly set initial
2007-03-17 Lucas Rocha <lucasr@gnome.org> * src/scale.c (zenity_scale): set value range before setting value in order to correctly set initial state (Fixes bug #521574). svn path=/trunk/; revision=1337
-rw-r--r--ChangeLog5
-rw-r--r--src/scale.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d1cf8031..36f1cc16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-03-17 Lucas Rocha <lucasr@gnome.org>
+ * src/scale.c (zenity_scale): set value range before setting value
+ in order to correctly set initial state (Fixes bug #521574).
+
+2007-03-17 Lucas Rocha <lucasr@gnome.org>
+
* src/option.c: added comment on a string in order clarify its
meaning for translators (Fixes bug #520847).
diff --git a/src/scale.c b/src/scale.c
index 91b0ef5f..d69bd8a8 100644
--- a/src/scale.c
+++ b/src/scale.c
@@ -81,8 +81,8 @@ zenity_scale (ZenityData *data, ZenityScaleData *scale_data)
if (scale_data->dialog_text)
gtk_label_set_markup (GTK_LABEL (text), g_strcompress (scale_data->dialog_text));
- gtk_range_set_value (GTK_RANGE (scale), scale_data->value);
gtk_range_set_range (GTK_RANGE (scale), scale_data->min_value, scale_data->max_value);
+ gtk_range_set_value (GTK_RANGE (scale), scale_data->value);
gtk_range_set_increments (GTK_RANGE (scale), scale_data->step, 0);
if (scale_data->print_partial)
bgstack15