zenity r1338 - in branches/gnome-2-22: . src



Author: lucasr
Date: Mon Mar 17 19:24:09 2008
New Revision: 1338
URL: http://svn.gnome.org/viewvc/zenity?rev=1338&view=rev

Log:
2008-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).


Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/src/scale.c

Modified: branches/gnome-2-22/src/scale.c
==============================================================================
--- branches/gnome-2-22/src/scale.c	(original)
+++ branches/gnome-2-22/src/scale.c	Mon Mar 17 19:24:09 2008
@@ -81,8 +81,8 @@
   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) 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]