[vala] vapi: Update GIR-based bindings



commit 080be0a24ad1a53781625a1000102bfc09956972
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat May 9 16:45:11 2015 +0200

    vapi: Update GIR-based bindings

 vapi/libgdata.vapi                     |   20 ++++++++++++++++----
 vapi/metadata/Gdk-3.0-custom.vala      |    1 +
 vapi/metadata/Gdk-3.0.metadata         |    3 +++
 vapi/pango.vapi                        |   10 +---------
 vapi/webkit2gtk-web-extension-4.0.vapi |    6 +++++-
 5 files changed, 26 insertions(+), 14 deletions(-)
---
diff --git a/vapi/libgdata.vapi b/vapi/libgdata.vapi
index dc12275..ff39ff6 100644
--- a/vapi/libgdata.vapi
+++ b/vapi/libgdata.vapi
@@ -155,7 +155,9 @@ namespace GData {
                public CalendarCalendar (string? id);
                public unowned string get_access_level ();
                public GData.Color get_color ();
+               [Deprecated]
                public int64 get_edited ();
+               [Deprecated]
                public uint get_times_cleaned ();
                public unowned string get_timezone ();
                public void set_color (GData.Color color);
@@ -164,11 +166,13 @@ namespace GData {
                public void set_timezone (string? _timezone);
                public string access_level { get; }
                public GData.Color color { get; set; }
+               [Deprecated]
                public int64 edited { get; }
                [NoAccessorMethod]
                public bool is_hidden { get; set; }
                [NoAccessorMethod]
                public bool is_selected { get; set; }
+               [Deprecated]
                public uint times_cleaned { get; }
                public string timezone { get; set; }
        }
@@ -226,9 +230,13 @@ namespace GData {
        public class CalendarFeed : GData.Feed {
                [CCode (has_construct_function = false)]
                protected CalendarFeed ();
+               [Deprecated]
                public uint get_times_cleaned ();
+               [Deprecated]
                public unowned string get_timezone ();
+               [Deprecated]
                public uint times_cleaned { get; }
+               [Deprecated]
                public string timezone { get; }
        }
        [CCode (cheader_filename = "gdata/gdata.h", type_id = "gdata_calendar_query_get_type ()")]
@@ -276,7 +284,11 @@ namespace GData {
                [CCode (has_construct_function = false)]
                public CalendarService (GData.Authorizer? authorizer);
                public static unowned GData.AuthorizationDomain get_primary_authorization_domain ();
+               public GData.CalendarEvent insert_calendar_event (GData.CalendarCalendar calendar, 
GData.CalendarEvent event, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               public async void insert_calendar_event_async (GData.CalendarCalendar calendar, 
GData.CalendarEvent event, GLib.Cancellable? cancellable);
+               [Deprecated]
                public GData.CalendarEvent insert_event (GData.CalendarEvent event, GLib.Cancellable? 
cancellable = null) throws GLib.Error;
+               [Deprecated]
                public async void insert_event_async (GData.CalendarEvent event, GLib.Cancellable? 
cancellable);
                public GData.Feed query_all_calendars (GData.Query? query, GLib.Cancellable? cancellable, 
GData.QueryProgressCallback? progress_callback) throws GLib.Error;
                public async void query_all_calendars_async (GData.Query? query, GLib.Cancellable? 
cancellable, owned GData.QueryProgressCallback? progress_callback);
@@ -1852,10 +1864,10 @@ namespace GData {
                public unowned string get_message ();
                public unowned string get_name ();
                public unowned string get_reason_code ();
-               public string help_uri { get; }
-               public string message { get; }
-               public string name { get; }
-               public string reason_code { get; }
+               public string help_uri { get; construct; }
+               public string message { get; construct; }
+               public string name { get; construct; }
+               public string reason_code { get; construct; }
        }
        [CCode (cheader_filename = "gdata/gdata.h", lower_case_csuffix = "youtube_video", type_id = 
"gdata_youtube_video_get_type ()")]
        public class YouTubeVideo : GData.Entry, GData.Commentable {
diff --git a/vapi/metadata/Gdk-3.0-custom.vala b/vapi/metadata/Gdk-3.0-custom.vala
index 7d57890..a0391a7 100644
--- a/vapi/metadata/Gdk-3.0-custom.vala
+++ b/vapi/metadata/Gdk-3.0-custom.vala
@@ -44,6 +44,7 @@ namespace Gdk {
                public string str;
        }
 
+       [CCode (cheader_filename = "gdk/gdk.h")]
        public struct Rectangle : Cairo.RectangleInt {
                public bool intersect (Gdk.Rectangle src2, out Gdk.Rectangle dest);
                public void union (Gdk.Rectangle src2, out Gdk.Rectangle dest);
diff --git a/vapi/metadata/Gdk-3.0.metadata b/vapi/metadata/Gdk-3.0.metadata
index 468836a..e933e0c 100644
--- a/vapi/metadata/Gdk-3.0.metadata
+++ b/vapi/metadata/Gdk-3.0.metadata
@@ -39,6 +39,9 @@ Device
         .associated_device nullable
         .name nullable
 
+// https://bugzilla.gnome.org/show_bug.cgi?id=748833
+Rectangle skip
+
 // vapigen actually generates the correctly, but in away that breaks BC
 Screen.get_monitor_geometry skip
 Window.get_frame_extents skip
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index f3c2bca..60c0bd5 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -265,15 +265,6 @@ namespace Pango {
        [CCode (cheader_filename = "pango/pango.h", ref_function = "pango_font_metrics_ref", type_id = 
"pango_font_metrics_get_type ()", unref_function = "pango_font_metrics_unref")]
        [Compact]
        public class FontMetrics {
-               public int approximate_char_width;
-               public int approximate_digit_width;
-               public int ascent;
-               public int descent;
-               public uint ref_count;
-               public int strikethrough_position;
-               public int strikethrough_thickness;
-               public int underline_position;
-               public int underline_thickness;
                [CCode (has_construct_function = false)]
                public FontMetrics ();
                public int get_approximate_char_width ();
@@ -639,6 +630,7 @@ namespace Pango {
                public Pango.Matrix? copy ();
                public void free ();
                public double get_font_scale_factor ();
+               public void get_font_scale_factors (out double xscale, out double yscale);
                public void rotate (double degrees);
                public void scale (double scale_x, double scale_y);
                public void transform_distance (ref double dx, ref double dy);
diff --git a/vapi/webkit2gtk-web-extension-4.0.vapi b/vapi/webkit2gtk-web-extension-4.0.vapi
index 0496083..061c816 100644
--- a/vapi/webkit2gtk-web-extension-4.0.vapi
+++ b/vapi/webkit2gtk-web-extension-4.0.vapi
@@ -172,6 +172,8 @@ namespace WebKit {
                        [NoAccessorMethod]
                        public WebKit.DOM.DOMWindow opener { owned get; }
                        [NoAccessorMethod]
+                       public long orientation { get; }
+                       [NoAccessorMethod]
                        public long outer_height { get; }
                        [NoAccessorMethod]
                        public long outer_width { get; }
@@ -242,7 +244,7 @@ namespace WebKit {
                        public string get_document_uri ();
                        public string get_domain ();
                        public unowned WebKit.DOM.Element get_element_by_id (string elementId);
-                       public WebKit.DOM.NodeList get_elements_by_class_name (string tagname);
+                       public WebKit.DOM.NodeList get_elements_by_class_name (string classNames);
                        public WebKit.DOM.NodeList get_elements_by_name (string elementName);
                        public WebKit.DOM.NodeList get_elements_by_tag_name (string tagname);
                        public WebKit.DOM.NodeList get_elements_by_tag_name_ns (string namespaceURI, string 
localName);
@@ -2100,6 +2102,8 @@ namespace WebKit {
                        public long client_x { get; }
                        public long client_y { get; }
                        public bool ctrl_key { get; }
+                       [NoAccessorMethod]
+                       public double force { get; }
                        public WebKit.DOM.Node from_element { get; }
                        public bool meta_key { get; }
                        [NoAccessorMethod]


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