[vala/staging] vapi: Update GIR-based bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vapi: Update GIR-based bindings
- Date: Mon, 12 Feb 2018 19:15:10 +0000 (UTC)
commit c687bacb4cd881f198a7bfcebb214fce18ba0464
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Feb 12 20:13:10 2018 +0100
vapi: Update GIR-based bindings
vapi/gdk-3.0.vapi | 1 +
vapi/gio-2.0.vapi | 8 ++++----
vapi/gtk+-3.0.vapi | 7 ++++---
vapi/gtk+-4.0.vapi | 10 ----------
4 files changed, 9 insertions(+), 17 deletions(-)
---
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi
index 7a45a6a..a3f6349 100644
--- a/vapi/gdk-3.0.vapi
+++ b/vapi/gdk-3.0.vapi
@@ -5427,6 +5427,7 @@ namespace Gdk {
public void add_virtual_modifiers (ref Gdk.ModifierType state);
[Version (since = "2.16")]
public bool get_caps_lock_state ();
+ [Version (deprecated = true, deprecated_since = "3.22")]
public static unowned Gdk.Keymap get_default ();
public Pango.Direction get_direction ();
public bool get_entries_for_keycode (uint hardware_keycode, [CCode (array_length_cname =
"n_entries", array_length_pos = 3.1)] out Gdk.KeymapKey[] keys, [CCode (array_length_cname = "n_entries",
array_length_pos = 3.1)] out uint[] keyvals);
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index fee8e57..ae0af9c 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -999,16 +999,16 @@ namespace GLib {
public async DBusProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags,
GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable?
cancellable = null) throws GLib.Error;
[CCode (has_construct_function = false)]
public DBusProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags,
GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable?
cancellable = null) throws GLib.Error;
- public GLib.Variant get_cached_property (string property_name);
+ public GLib.Variant? get_cached_property (string property_name);
[CCode (array_length = false, array_null_terminated = true)]
- public string[] get_cached_property_names ();
+ public string[]? get_cached_property_names ();
public unowned GLib.DBusConnection get_connection ();
public int get_default_timeout ();
public GLib.DBusProxyFlags get_flags ();
- public GLib.DBusInterfaceInfo get_interface_info ();
+ public unowned GLib.DBusInterfaceInfo? get_interface_info ();
public unowned string get_interface_name ();
public unowned string get_name ();
- public string get_name_owner ();
+ public string? get_name_owner ();
public unowned string get_object_path ();
[CCode (cname = "g_dbus_proxy_new", finish_function = "g_dbus_proxy_new_finish")]
[Version (deprecated_since = "vala-0.36", replacement = "DBusProxy")]
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 2f6fe3d..2aba884 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -3244,7 +3244,7 @@ namespace Gtk {
[CCode (has_construct_function = false, type = "GtkWidget*")]
[Version (since = "2.4")]
public FontButton.with_font (string fontname);
- [Version (since = "2.4")]
+ [Version (deprecated = true, deprecated_since = "3.22", since = "2.4")]
public string font_name { get; set; }
[Version (since = "2.4")]
public bool show_size { get; set; }
@@ -11506,7 +11506,8 @@ namespace Gtk {
GPL_3_0_ONLY,
LGPL_2_1_ONLY,
LGPL_3_0_ONLY,
- AGPL_3_0
+ AGPL_3_0,
+ AGPL_3_0_ONLY
}
[CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_MENU_DIR_", type_id =
"gtk_menu_direction_type_get_type ()")]
public enum MenuDirectionType {
@@ -12256,7 +12257,7 @@ namespace Gtk {
public delegate void ClipboardReceivedFunc (Gtk.Clipboard clipboard, Gtk.SelectionData
selection_data);
[CCode (cheader_filename = "gtk/gtk.h", instance_pos = 3.9)]
[Version (since = "2.10")]
- public delegate void ClipboardRichTextReceivedFunc (Gtk.Clipboard clipboard, Gdk.Atom format, [CCode
(array_length_cname = "length", array_length_pos = 3.1, array_length_type = "gsize", type = "guint8*")]
uint8[]? text);
+ public delegate void ClipboardRichTextReceivedFunc (Gtk.Clipboard clipboard, Gdk.Atom format, [CCode
(array_length_cname = "length", array_length_pos = 3.1, array_length_type = "gsize", type = "const guint8*")]
uint8[]? text);
[CCode (cheader_filename = "gtk/gtk.h", instance_pos = 2.9)]
[Version (since = "2.4")]
public delegate void ClipboardTargetsReceivedFunc (Gtk.Clipboard clipboard, [CCode
(array_length_cname = "n_atoms", array_length_pos = 2.1)] Gdk.Atom[]? atoms);
diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi
index d7bfb86..5343a6d 100644
--- a/vapi/gtk+-4.0.vapi
+++ b/vapi/gtk+-4.0.vapi
@@ -5249,7 +5249,6 @@ namespace Gdk {
public class Window : GLib.Object {
[CCode (has_construct_function = false)]
protected Window ();
- public void add_filter (Gdk.FilterFunc function);
public void beep ();
public unowned Gdk.DrawingContext begin_draw_frame (Gdk.DrawContext? context, Cairo.Region
region);
public void begin_move_drag (int button, int root_x, int root_y, uint32 timestamp);
@@ -5333,7 +5332,6 @@ namespace Gdk {
public Window.popup (Gdk.Display display, Gdk.Rectangle position);
public void raise ();
public void register_dnd ();
- public void remove_filter (Gdk.FilterFunc function);
public void resize (int width, int height);
public void restack (Gdk.Window? sibling, bool above);
public void scroll (int dx, int dy);
@@ -5618,12 +5616,6 @@ namespace Gdk {
PAD_GROUP_MODE,
EVENT_LAST
}
- [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_FILTER_", type_id =
"gdk_filter_return_get_type ()")]
- public enum FilterReturn {
- CONTINUE,
- TRANSLATE,
- REMOVE
- }
[CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_FRAME_CLOCK_PHASE_", type_id =
"gdk_frame_clock_phase_get_type ()")]
[Flags]
[Version (since = "3.8")]
@@ -5885,8 +5877,6 @@ namespace Gdk {
[CCode (cheader_filename = "gdk/gdk.h", instance_pos = 1.9)]
public delegate void EventFunc (Gdk.Event event);
[CCode (cheader_filename = "gdk/gdk.h", instance_pos = 2.9)]
- public delegate Gdk.FilterReturn FilterFunc (Gdk.XEvent xevent, Gdk.Event event);
- [CCode (cheader_filename = "gdk/gdk.h", instance_pos = 2.9)]
[Version (since = "3.20")]
public delegate void SeatGrabPrepareFunc (Gdk.Seat seat, Gdk.Window window);
[CCode (cheader_filename = "gdk/gdk.h", instance_pos = 1.9)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]