[vala/staging: 5/5] vapi: Update GIR-based bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 5/5] vapi: Update GIR-based bindings
- Date: Tue, 2 Jan 2018 12:10:10 +0000 (UTC)
commit b10169c0e3c0d6d41bca168ed4d395feac32d5c1
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Jan 2 13:07:58 2018 +0100
vapi: Update GIR-based bindings
vapi/gtk+-3.0.vapi | 4 ++--
vapi/json-glib-1.0.vapi | 10 +++++++++-
2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index f6e21ff..f1b66e0 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -3216,7 +3216,7 @@ namespace Gtk {
[CCode (has_construct_function = false, type = "GtkWidget*")]
[Version (since = "2.4")]
public FontButton ();
- [Version (since = "2.4")]
+ [Version (deprecated = true, deprecated_since = "3.22", since = "2.4")]
public unowned string get_font_name ();
[Version (since = "2.4")]
public bool get_show_size ();
@@ -3228,7 +3228,7 @@ namespace Gtk {
public bool get_use_font ();
[Version (since = "2.4")]
public bool get_use_size ();
- [Version (since = "2.4")]
+ [Version (deprecated = true, deprecated_since = "3.22", since = "2.4")]
public bool set_font_name (string fontname);
[Version (since = "2.4")]
public void set_show_size (bool show_size);
diff --git a/vapi/json-glib-1.0.vapi b/vapi/json-glib-1.0.vapi
index 38e1d6d..1a47cee 100644
--- a/vapi/json-glib-1.0.vapi
+++ b/vapi/json-glib-1.0.vapi
@@ -195,10 +195,16 @@ namespace Json {
public unowned Json.Array get_array_member (string member_name);
[Version (since = "0.8")]
public bool get_boolean_member (string member_name);
+ [Version (since = "1.6")]
+ public bool get_boolean_member_with_default (string member_name, bool default_value);
[Version (since = "0.8")]
public double get_double_member (string member_name);
+ [Version (since = "1.6")]
+ public double get_double_member_with_default (string member_name, double default_value);
[Version (since = "0.8")]
public int64 get_int_member (string member_name);
+ [Version (since = "1.6")]
+ public int64 get_int_member_with_default (string member_name, int64 default_value);
public unowned Json.Node? get_member (string member_name);
public GLib.List<weak string>? get_members ();
[Version (since = "0.8")]
@@ -208,6 +214,8 @@ namespace Json {
public uint get_size ();
[Version (since = "0.8")]
public unowned string get_string_member (string member_name);
+ [Version (since = "1.6")]
+ public unowned string get_string_member_with_default (string member_name, string
default_value);
public GLib.List<weak Json.Node>? get_values ();
public bool has_member (string member_name);
[Version (since = "1.2")]
@@ -255,7 +263,7 @@ namespace Json {
[Version (since = "0.12")]
public async bool load_from_stream_async (GLib.InputStream stream, GLib.Cancellable?
cancellable = null) throws GLib.Error;
[Version (since = "1.4")]
- public Json.Node steal_root ();
+ public Json.Node? steal_root ();
[NoAccessorMethod]
[Version (since = "1.2")]
public bool immutable { get; construct; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]