]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: remove default argument from g_file_load_contents
authorJürg Billeter <j@bitron.ch>
Wed, 28 Aug 2013 15:07:57 +0000 (17:07 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 28 Aug 2013 15:07:57 +0000 (17:07 +0200)
Fixes bug 706761.

vapi/gio-2.0.vapi
vapi/metadata/Gio-2.0.metadata

index d2dbaa997117a132c5994ed4936d8b3abc64e72e..0e505f92ab6d43013263dcc35290e7e46cfefe04 100644 (file)
@@ -1763,9 +1763,13 @@ namespace GLib {
        public class SimpleActionGroup : GLib.Object, GLib.ActionGroup, GLib.ActionMap {
                [CCode (has_construct_function = false)]
                public SimpleActionGroup ();
+               [Deprecated (since = "2.38")]
                public void add_entries ([CCode (array_length_cname = "n_entries", array_length_pos = 1.5)] GLib.ActionEntry[] entries, void* user_data);
+               [Deprecated (since = "2.38")]
                public void insert (GLib.Action action);
+               [Deprecated (since = "2.38")]
                public unowned GLib.Action lookup (string action_name);
+               [Deprecated (since = "2.38")]
                public void remove (string action_name);
        }
        [CCode (cheader_filename = "gio/gio.h")]
@@ -2501,7 +2505,7 @@ namespace GLib {
                public abstract bool has_uri_scheme (string uri_scheme);
                public abstract uint hash ();
                public abstract bool is_native ();
-               public bool load_contents (GLib.Cancellable? cancellable = null, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
+               public bool load_contents (GLib.Cancellable? cancellable, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
                public async bool load_contents_async (GLib.Cancellable? cancellable = null, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
                public async bool load_partial_contents_async (GLib.Cancellable? cancellable = null, GLib.FileReadMoreCallback read_more_callback, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
                public abstract bool make_directory (GLib.Cancellable? cancellable = null) throws GLib.Error;
index becfbfcfa7c96257f6d1baf9a21e8663f9f7f683..f9898a573da81d3f51ac8a672c62d59fad299ecb 100644 (file)
@@ -107,6 +107,7 @@ DBusServer
 Drive
   .get_sort_key#virtual_method virtual
 File
+  .load_contents.cancellable#parameter default=()
   .monitor_dir* throws="GLib.IOError"
   .monitor_file throws="GLib.IOError"
 FileInfo