[vala] gio-2.0: remove default argument from g_file_load_contents
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gio-2.0: remove default argument from g_file_load_contents
- Date: Wed, 28 Aug 2013 15:12:36 +0000 (UTC)
commit 279b7fc7fd63c39c7f98790a8a768b1b6e0471e1
Author: Jürg Billeter <j bitron ch>
Date: Wed Aug 28 17:07:57 2013 +0200
gio-2.0: remove default argument from g_file_load_contents
Fixes bug 706761.
vapi/gio-2.0.vapi | 6 +++++-
vapi/metadata/Gio-2.0.metadata | 1 +
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index d2dbaa9..0e505f9 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -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;
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index becfbfc..f9898a5 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]