gnome-scan r661 - in trunk: . lib



Author: bersace
Date: Fri Dec 12 19:51:34 2008
New Revision: 661
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=661&view=rev

Log:
Add bool node option.

Modified:
   trunk/ChangeLog
   trunk/lib/gnome-scan-option.vala

Modified: trunk/lib/gnome-scan-option.vala
==============================================================================
--- trunk/lib/gnome-scan-option.vala	(original)
+++ trunk/lib/gnome-scan-option.vala	Fri Dec 12 19:51:34 2008
@@ -50,4 +50,19 @@
 		public OptionHint		hint		{get; set construct;}
 		public bool				active		{get; set; default = true;}
 	}
+
+	public class OptionBool : Option {
+		public bool value {set; get;}
+
+		public OptionBool(string name, string title, string desc, string domain, string group, bool value, OptionHint hint)
+		{
+			this.name = name;
+			this.title = title;
+			this.desc = desc;
+			this.domain = domain;
+			this.group = group;
+			this.value = value;
+			this.hint = hint;
+		}
+	}
 }



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