[vala/staging] vapi: Update GIR-based bindings



commit edf4b3dcbabe7f3a0e3cd0207205d82236b82c8a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Dec 9 13:50:55 2019 +0100

    vapi: Update GIR-based bindings

 vapi/gdk-pixbuf-2.0.vapi                | 1 +
 vapi/gio-2.0.vapi                       | 4 ++++
 vapi/gnome-desktop-3.0.vapi             | 2 ++
 vapi/gstreamer-base-1.0.vapi            | 2 ++
 vapi/gstreamer-check-1.0.vapi           | 2 ++
 vapi/gtk4.vapi                          | 4 +++-
 vapi/metadata/GnomeDesktop-3.0.metadata | 2 ++
 vapi/pango.vapi                         | 2 +-
 8 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gdk-pixbuf-2.0.vapi b/vapi/gdk-pixbuf-2.0.vapi
index 5f0783302..898e50085 100644
--- a/vapi/gdk-pixbuf-2.0.vapi
+++ b/vapi/gdk-pixbuf-2.0.vapi
@@ -265,6 +265,7 @@ namespace Gdk {
                HYPER
        }
        [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", cprefix = "GDK_PIXBUF_ALPHA_", type_id = 
"gdk_pixbuf_alpha_mode_get_type ()")]
+       [Version (deprecated = true)]
        public enum PixbufAlphaMode {
                BILEVEL,
                FULL
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index d6975a66b..1d9f8bf10 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1674,6 +1674,10 @@ namespace GLib {
                public ListStore (GLib.Type item_type);
                [Version (since = "2.44")]
                public void append (GLib.Object item);
+               [Version (since = "2.64")]
+               public bool find (GLib.Object item, out uint position);
+               [Version (since = "2.64")]
+               public bool find_with_equal_func (GLib.Object item, GLib.EqualFunc equal_func, out uint 
position);
                [Version (since = "2.44")]
                public void insert (uint position, GLib.Object item);
                [Version (since = "2.44")]
diff --git a/vapi/gnome-desktop-3.0.vapi b/vapi/gnome-desktop-3.0.vapi
index 270cd84a8..0e489bc47 100644
--- a/vapi/gnome-desktop-3.0.vapi
+++ b/vapi/gnome-desktop-3.0.vapi
@@ -353,4 +353,6 @@ namespace Gnome {
        public delegate void IdleMonitorWatchFunc (Gnome.IdleMonitor monitor, uint id);
        [CCode (cheader_filename = "libgnome-desktop/gnome-rr.h", cname = "GNOME_RR_CONNECTOR_TYPE_PANEL")]
        public const string RR_CONNECTOR_TYPE_PANEL;
+       [CCode (cheader_filename = "libgnome-desktop/gnome-systemd.h")]
+       public static async bool start_systemd_scope (string name, int32 pid, string? description, 
GLib.DBusConnection? connection, GLib.Cancellable? cancellable) throws GLib.Error;
 }
diff --git a/vapi/gstreamer-base-1.0.vapi b/vapi/gstreamer-base-1.0.vapi
index 2ea72a8e2..d1ae138cb 100644
--- a/vapi/gstreamer-base-1.0.vapi
+++ b/vapi/gstreamer-base-1.0.vapi
@@ -104,6 +104,8 @@ namespace Gst {
                        public virtual bool start ();
                        [NoWrapper]
                        public virtual bool stop ();
+                       [Version (since = "1.18")]
+                       public void update_segment (Gst.Segment segment);
                        [NoWrapper]
                        public virtual Gst.FlowReturn update_src_caps (Gst.Caps caps, out Gst.Caps ret);
                        [NoAccessorMethod]
diff --git a/vapi/gstreamer-check-1.0.vapi b/vapi/gstreamer-check-1.0.vapi
index 35ddf49ed..68f325442 100644
--- a/vapi/gstreamer-check-1.0.vapi
+++ b/vapi/gstreamer-check-1.0.vapi
@@ -38,6 +38,8 @@ namespace Gst {
                        public static Gst.ClockTime id_list_get_latest_time (GLib.List<Gst.ClockID?>? 
pending_list);
                        public uint peek_id_count ();
                        public bool peek_next_pending_id (out Gst.ClockID pending_id);
+                       [Version (since = "1.18")]
+                       public bool process_id (owned Gst.ClockID pending_id);
                        [Version (since = "1.4")]
                        public uint process_id_list (GLib.List<Gst.ClockID?>? pending_list);
                        public Gst.ClockID process_next_clock_id ();
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index 879357b5d..2ac17ec17 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -11421,7 +11421,7 @@ namespace Gtk {
        [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_tree_list_model_get_type ()")]
        public class TreeListModel : GLib.Object, GLib.ListModel {
                [CCode (has_construct_function = false)]
-               protected TreeListModel ();
+               public TreeListModel (bool passthrough, GLib.ListModel root, bool autoexpand, owned 
Gtk.TreeListModelCreateModelFunc create_func);
                public bool get_autoexpand ();
                public Gtk.TreeListRow? get_child_row (uint position);
                public unowned GLib.ListModel get_model ();
@@ -13910,6 +13910,8 @@ namespace Gtk {
        public delegate void TreeCellDataFunc (Gtk.TreeViewColumn tree_column, Gtk.CellRenderer cell, 
Gtk.TreeModel tree_model, Gtk.TreeIter iter);
        [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 3.9)]
        public delegate int TreeIterCompareFunc (Gtk.TreeModel model, Gtk.TreeIter a, Gtk.TreeIter b);
+       [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 1.9)]
+       public delegate GLib.ListModel? TreeListModelCreateModelFunc (GLib.Object item);
        [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 4.9)]
        public delegate void TreeModelFilterModifyFunc (Gtk.TreeModel model, Gtk.TreeIter iter, out 
GLib.Value value, int column);
        [CCode (cheader_filename = "gtk/gtk.h", instance_pos = 2.9)]
diff --git a/vapi/metadata/GnomeDesktop-3.0.metadata b/vapi/metadata/GnomeDesktop-3.0.metadata
index af2b174f4..34fadeb07 100644
--- a/vapi/metadata/GnomeDesktop-3.0.metadata
+++ b/vapi/metadata/GnomeDesktop-3.0.metadata
@@ -29,6 +29,8 @@ RRConfig cheader_filename="libgnome-desktop/gnome-rr-config.h"
 RRScreen
        .new name="new_sync"
 
+start_systemd_scope cheader_filename="libgnome-desktop/gnome-systemd.h"
+
 WallClock cheader_filename="libgnome-desktop/gnome-wall-clock.h"
 
 XkbInfo cheader_filename="libgnome-desktop/gnome-xkb-info.h"
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index cfad28047..6e2625ff9 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -307,7 +307,7 @@ namespace Pango {
                [CCode (has_construct_function = false)]
                protected FontFamily ();
                [Version (since = "1.46")]
-               public virtual unowned Pango.FontFace get_face (string name);
+               public virtual unowned Pango.FontFace? get_face (string name);
                public virtual unowned string get_name ();
                [Version (since = "1.4")]
                public virtual bool is_monospace ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]