vala r1840 - in trunk: . vapi



Author: juergbi
Date: Fri Oct 17 10:58:48 2008
New Revision: 1840
URL: http://svn.gnome.org/viewvc/vala?rev=1840&view=rev

Log:
2008-10-17  JÃrg Billeter  <j bitron ch>

	* vapi/glib-2.0.vapi:

	Add g_strcanon, g_object_class_install_property, GToggleNotify,
	and GStringChunk bindings, patch by Yu Feng,
	fixes part of bug 555566


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	Fri Oct 17 10:58:48 2008
@@ -787,6 +787,11 @@
 	[CCode (cname = "g_utf8_skip")]
 	public static char[] skip;
 
+	/* modifies string in place */
+	[CCode (cname = "g_strcanon")]
+	public void canon (string valid_chars, char substitutor);
+
+	/* internal method */
 	public string substring (long offset, long len);
 
 	public long length {
@@ -910,6 +915,11 @@
 		public ParamSpecUInt (string name, string nick, string blurb, uint minimum, uint maximum, uint default_value, ParamFlags flags);
 	}
 
+	public class ParamSpecBoolean : ParamSpec {
+		[CCode (cname = "g_param_spec_boolean")]
+		public ParamSpecBoolean (string name, string nick, string blurb, bool defaultvalue, ParamFlags flags);
+	}
+
 	[CCode (cprefix = "G_PARAM_", has_type_id = false)]
 	public enum ParamFlags {
 		READABLE,
@@ -928,6 +938,7 @@
 	public class ObjectClass : TypeClass {
 		public weak ParamSpec find_property (string property_name);
 		public weak ParamSpec[] list_properties ();
+		public void install_property (uint property_id, ParamSpec pspec);
 	}
 	
 	public struct ObjectConstructParam {
@@ -973,8 +984,14 @@
 		public signal void notify (ParamSpec pspec);
 
 		public weak Object connect (string signal_spec, ...);
+
+		public void add_toggle_ref (ToggleNotify notify);
+		public void remove_toggle_ref (ToggleNotify notify);
 	}
 
+	[CCode (instance_pos = 0)]
+	public delegate void ToggleNotify (GLib.Object object, bool is_last_ref);
+
 	public struct Parameter {
 		public string name;
 		public Value value;
@@ -3230,6 +3247,18 @@
 		public long allocated_len;
 	}
 
+	/* String Chunks */
+
+	[Compact]
+	[CCode (free_function = "g_string_chunk_free")]
+	public class StringChunk {
+		public StringChunk (size_t size);
+		public weak string insert (string str);
+		public weak string insert_const (string str);
+		public weak string insert_len (string str, ssize_t len);
+		public void clear ();
+	}
+
 	/* Pointer Arrays */
 
 	[Compact]



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