]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Add g_strcanon, g_object_class_install_property, GToggleNotify, and
authorJürg Billeter <j@bitron.ch>
Fri, 17 Oct 2008 10:58:48 +0000 (10:58 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 17 Oct 2008 10:58:48 +0000 (10:58 +0000)
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

svn path=/trunk/; revision=1840

ChangeLog
vapi/glib-2.0.vapi

index aeaf6d7a6c50a09b35c0452383eb213810fc1b41..fec79807c3bb2832f86a4ea49e7cbf56df81b99a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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
+
 2008-10-17  Roberto Majadas  <telemaco@openshine.com>
 
        * vapi/tracker-indexer-module-1.0.vapi: Add tracker indexer bindings
index 062eba1b19518d9e1670cf25b182a2275b26cd66..e61b2fc0fffe492a62566e343a8c351cc0f3ea94 100644 (file)
@@ -787,6 +787,11 @@ public class string {
        [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 @@ namespace GLib {
                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 @@ namespace GLib {
        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 @@ namespace GLib {
                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 @@ namespace GLib {
                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]