gnome-scan r691 - in trunk: . lib



Author: bersace
Date: Sun Dec 14 21:32:07 2008
New Revision: 691
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=691&view=rev

Log:
Set checkbox value upon construction.

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

Modified: trunk/lib/gnome-scan-checkbox-widget.vala
==============================================================================
--- trunk/lib/gnome-scan-checkbox-widget.vala	(original)
+++ trunk/lib/gnome-scan-checkbox-widget.vala	Sun Dec 14 21:32:07 2008
@@ -33,6 +33,7 @@
 			this.check = new CheckButton.with_label(this.option.title);
 			this.pack_start(this.check, true, true, 0);
 
+			this.check.active = ((OptionBool)this.option).value;
 			this.check.toggled += this.update_option;
 			this.option.notify["value"] += this.update_widget;
 		}



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