vala r1251 - in trunk: . vapi



Author: malureau
Date: Wed Apr 16 23:27:14 2008
New Revision: 1251
URL: http://svn.gnome.org/viewvc/vala?rev=1251&view=rev

Log:
2008-04-16  Marc-Andre Lureau  <marcandre lureau gmail com>

	* vapi/glib-2.0.vapi (EnumClass, FlagsClass, FlagsValue): complete
	glib-2.0 enum and flags bindings, fixes bug 528114


Modified:
   trunk/ChangeLog
   trunk/vapi/glib-2.0.vapi

Modified: trunk/vapi/glib-2.0.vapi
==============================================================================
--- trunk/vapi/glib-2.0.vapi	(original)
+++ trunk/vapi/glib-2.0.vapi	Wed Apr 16 23:27:14 2008
@@ -753,7 +753,9 @@
 
 	[CCode (lower_case_csuffix = "enum")]
 	public class EnumClass : TypeClass {
-		public weak EnumValue get_value (int value);
+		public weak EnumValue? get_value (int value);
+		public weak EnumValue? get_value_by_name (string name);
+		public weak EnumValue? get_value_by_nick (string name);
 	}
 
 	public class EnumValue {
@@ -762,6 +764,19 @@
 		public weak string value_nick;
 	}
 
+	[CCode (lower_case_csuffix = "flags")]
+	public class FlagsClass : TypeClass {
+		public weak FlagsValue? get_first_value ();
+		public weak FlagsValue? get_value_by_name (string name);
+		public weak FlagsValue? get_value_by_nick (string name);
+	}
+
+	public class FlagsValue {
+		public int value;
+		public weak string value_name;
+		public weak string value_nick;
+	}
+
 	[CCode (cname = "gpointer", has_type_id = true, type_id = "G_TYPE_BOXED", marshaller_type_name = "BOXED", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed")]
 	public abstract class Boxed {
 	}



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