gnome-scan r753 - in trunk: . lib



Author: bersace
Date: Thu Dec 25 21:37:54 2008
New Revision: 753
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=753&view=rev

Log:
Added pointer 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	Thu Dec 25 21:37:54 2008
@@ -135,9 +135,6 @@
 			}
 		}
 
-		// workaround vala not registering value option ;/
-		public signal void changed();
-
 		public OptionEnum(string name, string title, string desc, string group, string domain, Gnome.Scan.EnumValue? value, SList<Gnome.Scan.EnumValue?> values, OptionHint hint)
 		{
 			this.name = name;
@@ -150,4 +147,34 @@
 			this.hint = hint;
 		}
 	}
+
+	public class OptionBoxed : Option {
+		public weak Boxed value {set; get;}
+
+		public OptionBoxed(string name, string title, string desc, string group, string domain, Boxed value, OptionHint hint)
+		{
+			this.name = name;
+			this.title = title;
+			this.desc = desc;
+			this.group = group;
+			this.domain = domain;
+			this.value = value;
+			this.hint = hint;
+		}
+	}
+
+	public class OptionPointer : Option {
+		public weak void* value {set; get;}
+
+		public OptionPointer(string name, string title, string desc, string group, string domain, void* value, OptionHint hint)
+		{
+			this.name = name;
+			this.title = title;
+			this.desc = desc;
+			this.group = group;
+			this.domain = domain;
+			this.value = value;
+			this.hint = hint;
+		}
+	}
 }



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