gnome-scan r822 - in trunk: . lib



Author: bersace
Date: Tue Feb  3 20:06:38 2009
New Revision: 822
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=822&view=rev

Log:
Report constraints to widgets

Modified:
   trunk/ChangeLog
   trunk/lib/gnome-scan-scale-widget.vala

Modified: trunk/lib/gnome-scan-scale-widget.vala
==============================================================================
--- trunk/lib/gnome-scan-scale-widget.vala	(original)
+++ trunk/lib/gnome-scan-scale-widget.vala	Tue Feb  3 20:06:38 2009
@@ -41,10 +41,17 @@
 				digits = 2;
 
 			scale = new HScale(adj);
-			scale.draw_value = false;
-			scale.set_digits(digits);
+			scale.set_increments(option.range.step, option.range.step);
+			scale.draw_value	= false;
+			scale.update_policy	= UpdateType.DISCONTINUOUS;
+			scale.digits		= digits;
 
 			spin = new SpinButton(adj, option.range.step, digits);
+			spin.set_increments(option.range.step, option.range.step);
+			spin.update_policy	= SpinButtonUpdatePolicy.IF_VALID;
+			spin.snap_to_ticks	= true;
+			spin.numeric		= true;
+			spin.wrap			= true;
 
 			adj.notify["value"] += this.on_adj_value_changed;
 			option.notify["value"] += this.on_option_value_changed;



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