]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Ultimate fixes
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 12 Jan 2012 11:21:12 +0000 (12:21 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Thu, 12 Jan 2012 11:27:12 +0000 (12:27 +0100)
vapi/gio-2.0.vapi
vapi/metadata/Gio-2.0.metadata

index cf40da679507a8a5669c4f263f92797b3a3773bd..4d2bc20ee100548c7172e01f7063029c16c620b8 100644 (file)
@@ -2150,7 +2150,7 @@ namespace GLib {
        public interface ActionGroup : GLib.Object {
                public abstract void activate_action (string action_name, GLib.Variant? parameter);
                public abstract void change_action_state (string action_name, GLib.Variant value);
-               public abstract unowned bool? get_action_enabled (string action_name);
+               public abstract bool get_action_enabled (string action_name);
                public abstract unowned GLib.VariantType? get_action_parameter_type (string action_name);
                public abstract GLib.Variant? get_action_state (string action_name);
                public abstract GLib.Variant? get_action_state_hint (string action_name);
@@ -2455,8 +2455,9 @@ namespace GLib {
                public abstract bool can_poll ();
                public abstract GLib.PollableSource create_source (GLib.Cancellable? cancellable = null);
                public abstract bool is_readable ();
-               [CCode (vfunc_name = "read_nonblocking_fn")]
-               public abstract ssize_t read_nonblocking ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "gsize", type = "void*")] uint8[] buffer) throws GLib.Error;
+               public ssize_t read_nonblocking ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize", type = "void*")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [CCode (vfunc_name = "read_nonblocking")]
+               public abstract ssize_t read_nonblocking_fn ([CCode (array_length_cname = "size", array_length_pos = 1.1, array_length_type = "gsize", type = "void*")] uint8[] buffer) throws GLib.Error;
        }
        [CCode (cheader_filename = "gio/gio.h", type_cname = "GPollableOutputStreamInterface", type_id = "g_pollable_output_stream_get_type ()")]
        public interface PollableOutputStream : GLib.OutputStream {
index 10faa0560b56cf1d711f1b61c312c920b31fb4fc..aec48913b6314e416d1be8b1d232b34aa68e3226 100644 (file)
@@ -183,7 +183,7 @@ Initable
 PollableInputStream
   .create_source type="GLib.PollableSource"
   .read_nonblocking.buffer type="uint8[]" array_length_idx=1
-  .read_nonblocking#virtual_method vfunc_name="read_nonblocking_fn"
+  .read_nonblocking#virtual_method name="read_nonblocking_fn"
 PollableOutputStream
   .create_source type="GLib.PollableSource"
 TlsClientConnection
@@ -301,6 +301,7 @@ content_type_from_mime_type nullable
 content_type_get_mime_type nullable
 ActionGroup
   .get_action* nullable
+  .get_action_enabled nullable=false
   .get_action_state_type unowned
 ActionMap
   .add_action_entries.entries array array_length_idx=1