[vala] gdk-3.0, gtk+-3.0: Update to 3.19.5



commit ef6a500b13b2fcfc403636d59d1e72848fc9badd
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Dec 16 08:48:20 2015 +0100

    gdk-3.0, gtk+-3.0: Update to 3.19.5

 vapi/gdk-3.0.vapi                           |   53 +++++++++++++++++++++++
 vapi/gtk+-3.0.vapi                          |   22 +---------
 vapi/packages/gtk+-3.0/gtk+-3.0-custom.vala |    3 +
 vapi/packages/gtk+-3.0/gtk+-3.0.gi          |   61 +++++++++++---------------
 4 files changed, 84 insertions(+), 55 deletions(-)
---
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi
index ec4fc4a..c0d218d 100644
--- a/vapi/gdk-3.0.vapi
+++ b/vapi/gdk-3.0.vapi
@@ -4623,17 +4623,20 @@ namespace Gdk {
                public void get_position (out unowned Gdk.Screen screen, out int x, out int y);
                public void get_position_double (out unowned Gdk.Screen screen, out double x, out double y);
                public unowned string? get_product_id ();
+               public unowned Gdk.Seat get_seat ();
                public Gdk.InputSource get_source ();
                public void get_state (Gdk.Window window, [CCode (array_length = false)] double[]? axes, out 
Gdk.ModifierType mask);
                public unowned string? get_vendor_id ();
                public unowned Gdk.Window? get_window_at_position (out int win_x, out int win_y);
                public unowned Gdk.Window? get_window_at_position_double (out double win_x, out double win_y);
+               [Deprecated (since = "3.20.")]
                public Gdk.GrabStatus grab (Gdk.Window window, Gdk.GrabOwnership grab_ownership, bool 
owner_events, Gdk.EventMask event_mask, Gdk.Cursor? cursor, uint32 time_);
                public GLib.List<weak Gdk.Atom> list_axes ();
                public GLib.List<weak Gdk.Device>? list_slave_devices ();
                public void set_axis_use (uint index_, Gdk.AxisUse use);
                public void set_key (uint index_, uint keyval, Gdk.ModifierType modifiers);
                public bool set_mode (Gdk.InputMode mode);
+               [Deprecated (since = "3.20.")]
                public void ungrab (uint32 time_);
                public void warp (Gdk.Screen screen, int x, int y);
                public Gdk.Device? associated_device { get; }
@@ -4649,6 +4652,8 @@ namespace Gdk {
                public string? name { get; construct; }
                public string product_id { get; construct; }
                [NoAccessorMethod]
+               public Gdk.Seat seat { owned get; set; }
+               [NoAccessorMethod]
                public Gdk.DeviceType type { get; construct; }
                public string vendor_id { get; construct; }
                public signal void changed ();
@@ -4657,8 +4662,10 @@ namespace Gdk {
        public abstract class DeviceManager : GLib.Object {
                [CCode (has_construct_function = false)]
                protected DeviceManager ();
+               [Deprecated (since = "3.20.")]
                public unowned Gdk.Device get_client_pointer ();
                public unowned Gdk.Display? get_display ();
+               [Deprecated (since = "3.20")]
                public GLib.List<weak Gdk.Device> list_devices (Gdk.DeviceType type);
                public Gdk.Display display { get; construct; }
                public signal void device_added (Gdk.Device device);
@@ -4678,6 +4685,8 @@ namespace Gdk {
                public uint get_default_cursor_size ();
                public unowned Gdk.Window get_default_group ();
                public unowned Gdk.Screen get_default_screen ();
+               public unowned Gdk.Seat get_default_seat ();
+               [Deprecated (since = "3.20.")]
                public unowned Gdk.DeviceManager? get_device_manager ();
                public Gdk.Event? get_event ();
                public void get_maximal_cursor_size (out uint width, out uint height);
@@ -4696,6 +4705,7 @@ namespace Gdk {
                public void keyboard_ungrab (uint32 time_);
                [Deprecated (since = "3.0")]
                public unowned GLib.List<Gdk.Device> list_devices ();
+               public GLib.List<weak Gdk.Seat> list_seats ();
                public void notify_startup_complete (string startup_id);
                public static unowned Gdk.Display? open (string display_name);
                [Deprecated (since = "3.16")]
@@ -4723,6 +4733,8 @@ namespace Gdk {
                public void warp_pointer (Gdk.Screen screen, int x, int y);
                public signal void closed (bool is_error);
                public signal void opened ();
+               public signal void seat_added (Gdk.Seat seat);
+               public signal void seat_removed (Gdk.Seat seat);
        }
        [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_display_manager_get_type ()")]
        public class DisplayManager : GLib.Object {
@@ -4750,6 +4762,7 @@ namespace Gdk {
                public Gdk.DragAction get_suggested_action ();
                public unowned GLib.List<Gdk.Atom> list_targets ();
                public void set_device (Gdk.Device device);
+               public void set_hotspot (int hot_x, int hot_y);
        }
        [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gdk_event_get_type ()")]
        [Compact]
@@ -4773,6 +4786,7 @@ namespace Gdk {
                public unowned Gdk.Screen get_screen ();
                public bool get_scroll_deltas (out double delta_x, out double delta_y);
                public bool get_scroll_direction (out Gdk.ScrollDirection direction);
+               public unowned Gdk.Seat get_seat ();
                public unowned Gdk.Device? get_source_device ();
                public bool get_state (out Gdk.ModifierType state);
                public uint32 get_time ();
@@ -5198,6 +5212,21 @@ namespace Gdk {
                public signal void monitors_changed ();
                public signal void size_changed ();
        }
+       [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_seat_get_type ()")]
+       public abstract class Seat : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected Seat ();
+               public Gdk.SeatCapabilities get_capabilities ();
+               public unowned Gdk.Display get_display ();
+               public unowned Gdk.Device? get_keyboard ();
+               public unowned Gdk.Device? get_pointer ();
+               public GLib.List<weak Gdk.Seat> get_slaves (Gdk.SeatCapabilities capabilities);
+               public Gdk.GrabStatus grab (Gdk.Window window, Gdk.SeatCapabilities capabilities, bool 
owner_events, Gdk.Cursor? cursor, Gdk.Event? event);
+               public void ungrab ();
+               public Gdk.Display display { get; construct; }
+               public signal void device_added (Gdk.Device device);
+               public signal void device_removed (Gdk.Device device);
+       }
        [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_visual_get_type ()")]
        public class Visual : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -5410,6 +5439,13 @@ namespace Gdk {
                public static Gdk.Atom intern_static_string (string atom_name);
                public string name ();
        }
+       [CCode (cheader_filename = "gdk/gdk.h", has_type_id = false)]
+       public struct Border {
+               public int16 left;
+               public int16 right;
+               public int16 top;
+               public int16 bottom;
+       }
        [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_color_get_type ()")]
        [Deprecated (since = "3.14")]
        public struct Color {
@@ -5839,6 +5875,17 @@ namespace Gdk {
                RIGHT,
                SMOOTH
        }
+       [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_SEAT_CAPABILITY_", type_id = 
"gdk_seat_capabilities_get_type ()")]
+       [Flags]
+       public enum SeatCapabilities {
+               NONE,
+               POINTER,
+               TOUCH,
+               TABLET_STYLUS,
+               KEYBOARD,
+               ALL_POINTING,
+               ALL
+       }
        [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_SETTING_ACTION_", type_id = 
"gdk_setting_action_get_type ()")]
        public enum SettingAction {
                NEW,
@@ -5990,6 +6037,8 @@ namespace Gdk {
        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)]
+       public delegate void SeatGrabPrepareFunc (Gdk.Seat seat, Gdk.Window window);
        [CCode (cheader_filename = "gdk/gdk.h", instance_pos = 1.9)]
        public delegate bool WindowChildFunc (Gdk.Window window);
        [CCode (cheader_filename = "gdk/gdk.h", has_target = false)]
@@ -6055,8 +6104,12 @@ namespace Gdk {
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static Gdk.DragContext drag_begin_for_device (Gdk.Window window, Gdk.Device device, 
GLib.List<Gdk.Atom> targets);
        [CCode (cheader_filename = "gdk/gdk.h")]
+       public static Gdk.DragContext drag_begin_from_point (Gdk.Window window, Gdk.Device device, 
GLib.List<Gdk.Atom> targets, int x_root, int y_root);
+       [CCode (cheader_filename = "gdk/gdk.h")]
        public static void drag_drop (Gdk.DragContext context, uint32 time_);
        [CCode (cheader_filename = "gdk/gdk.h")]
+       public static void drag_drop_done (Gdk.DragContext context, bool success);
+       [CCode (cheader_filename = "gdk/gdk.h")]
        public static bool drag_drop_succeeded (Gdk.DragContext context);
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static void drag_find_window_for_screen (Gdk.DragContext context, Gdk.Window drag_window, 
Gdk.Screen screen, int x_root, int y_root, out Gdk.Window dest_window, out Gdk.DragProtocol protocol);
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 41daedd..968fe39 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -4740,21 +4740,6 @@ namespace Gtk {
                public string gtk_xft_rgba { owned get; set; }
        }
        [CCode (cheader_filename = "gtk/gtk.h")]
-       public class ShortcutsGesture : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
-               [CCode (has_construct_function = false)]
-               protected ShortcutsGesture ();
-               [NoAccessorMethod]
-               public GLib.Icon icon { owned get; set; }
-               [NoAccessorMethod]
-               public Gtk.SizeGroup icon_size_group { set; }
-               [NoAccessorMethod]
-               public string subtitle { owned get; set; }
-               [NoAccessorMethod]
-               public string title { owned get; set; }
-               [NoAccessorMethod]
-               public Gtk.SizeGroup title_size_group { set; }
-       }
-       [CCode (cheader_filename = "gtk/gtk.h")]
        public class ShortcutsGroup : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
                [CCode (has_construct_function = false)]
                protected ShortcutsGroup ();
@@ -7625,11 +7610,7 @@ namespace Gtk {
                public GLib.Type arg_type;
        }
        [CCode (cheader_filename = "gtk/gtk.h")]
-       public struct Border {
-               public int16 left;
-               public int16 right;
-               public int16 top;
-               public int16 bottom;
+       public struct Border : Gdk.Border {
        }
        [CCode (cheader_filename = "gtk/gtk.h,gtk/gtkimmodule.h")]
        public struct IMContextInfo {
@@ -7816,6 +7797,7 @@ namespace Gtk {
                public void set_visible_line_offset (int char_on_line);
                public bool starts_line ();
                public bool starts_sentence ();
+               public bool starts_tag (Gtk.TextTag tag);
                public bool starts_word ();
                public bool toggles_tag (Gtk.TextTag tag);
        }
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0-custom.vala b/vapi/packages/gtk+-3.0/gtk+-3.0-custom.vala
index 10093b1..a27bd63 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0-custom.vala
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0-custom.vala
@@ -43,6 +43,9 @@ namespace Gtk {
                public static unowned BindingSet @new (string name);
        }
 
+       public struct Border : Gdk.Border {
+       }
+
        [CCode (type_id = "gtk_container_get_type ()")]
        public abstract class Container {
                [CCode (vfunc_name = "forall")]
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.gi b/vapi/packages/gtk+-3.0/gtk+-3.0.gi
index 9927142..b9edc3d 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0.gi
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0.gi
@@ -2201,6 +2201,23 @@
                        <field name="n_args" type="guint"/>
                        <field name="args" type="GtkBindingArg*"/>
                </struct>
+               <struct name="GtkBorder">
+                       <method name="copy" symbol="gtk_border_copy">
+                               <return-type type="GtkBorder*"/>
+                               <parameters>
+                                       <parameter name="border_" type="GtkBorder*"/>
+                               </parameters>
+                       </method>
+                       <method name="free" symbol="gtk_border_free">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="border_" type="GtkBorder*"/>
+                               </parameters>
+                       </method>
+                       <method name="new" symbol="gtk_border_new">
+                               <return-type type="GtkBorder*"/>
+                       </method>
+               </struct>
                <struct name="GtkEventControllerClass">
                </struct>
                <struct name="GtkFileFilterInfo">
@@ -2333,8 +2350,6 @@
                        <field name="origin" type="gchar*"/>
                        <field name="value" type="GValue"/>
                </struct>
-               <struct name="GtkShortcutsGestureClass">
-               </struct>
                <struct name="GtkShortcutsGroupClass">
                </struct>
                <struct name="GtkShortcutsSectionClass">
@@ -2452,25 +2467,6 @@
                <struct name="GtkWindowGeometryInfo">
                </struct>
                <boxed name="GtkBorder" type-name="GtkBorder" get-type="gtk_border_get_type">
-                       <method name="copy" symbol="gtk_border_copy">
-                               <return-type type="GtkBorder*"/>
-                               <parameters>
-                                       <parameter name="border_" type="GtkBorder*"/>
-                               </parameters>
-                       </method>
-                       <method name="free" symbol="gtk_border_free">
-                               <return-type type="void"/>
-                               <parameters>
-                                       <parameter name="border_" type="GtkBorder*"/>
-                               </parameters>
-                       </method>
-                       <constructor name="new" symbol="gtk_border_new">
-                               <return-type type="GtkBorder*"/>
-                       </constructor>
-                       <field name="left" type="gint16"/>
-                       <field name="right" type="gint16"/>
-                       <field name="top" type="gint16"/>
-                       <field name="bottom" type="gint16"/>
                </boxed>
                <boxed name="GtkCssSection" type-name="GtkCssSection" get-type="gtk_css_section_get_type">
                        <method name="get_end_line" symbol="gtk_css_section_get_end_line">
@@ -4112,6 +4108,13 @@
                                        <parameter name="iter" type="GtkTextIter*"/>
                                </parameters>
                        </method>
+                       <method name="starts_tag" symbol="gtk_text_iter_starts_tag">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="iter" type="GtkTextIter*"/>
+                                       <parameter name="tag" type="GtkTextTag*"/>
+                               </parameters>
+                       </method>
                        <method name="starts_word" symbol="gtk_text_iter_starts_word">
                                <return-type type="gboolean"/>
                                <parameters>
@@ -22858,18 +22861,6 @@
                        <property name="gtk-xft-hintstyle" type="char*" readable="1" writable="1" 
construct="0" construct-only="0"/>
                        <property name="gtk-xft-rgba" type="char*" readable="1" writable="1" construct="0" 
construct-only="0"/>
                </object>
-               <object name="GtkShortcutsGesture" parent="GtkBox" type-name="GtkShortcutsGesture" 
get-type="gtk_shortcuts_gesture_get_type">
-                       <implements>
-                               <interface name="AtkImplementor"/>
-                               <interface name="GtkBuildable"/>
-                               <interface name="GtkOrientable"/>
-                       </implements>
-                       <property name="icon" type="GIcon*" readable="1" writable="1" construct="0" 
construct-only="0"/>
-                       <property name="icon-size-group" type="GtkSizeGroup*" readable="0" writable="1" 
construct="0" construct-only="0"/>
-                       <property name="subtitle" type="char*" readable="1" writable="1" construct="0" 
construct-only="0"/>
-                       <property name="title" type="char*" readable="1" writable="1" construct="0" 
construct-only="0"/>
-                       <property name="title-size-group" type="GtkSizeGroup*" readable="0" writable="1" 
construct="0" construct-only="0"/>
-               </object>
                <object name="GtkShortcutsGroup" parent="GtkBox" type-name="GtkShortcutsGroup" 
get-type="gtk_shortcuts_group_get_type">
                        <implements>
                                <interface name="AtkImplementor"/>
@@ -36121,14 +36112,14 @@
                                </parameters>
                        </vfunc>
                </interface>
-               <constant name="GTK_BINARY_AGE" type="int" value="1904"/>
+               <constant name="GTK_BINARY_AGE" type="int" value="1905"/>
                <constant name="GTK_INPUT_ERROR" type="int" value="-1"/>
                <constant name="GTK_INTERFACE_AGE" type="int" value="0"/>
                <constant name="GTK_LEVEL_BAR_OFFSET_HIGH" type="char*" value="high"/>
                <constant name="GTK_LEVEL_BAR_OFFSET_LOW" type="char*" value="low"/>
                <constant name="GTK_MAJOR_VERSION" type="int" value="3"/>
                <constant name="GTK_MAX_COMPOSE_LEN" type="int" value="7"/>
-               <constant name="GTK_MICRO_VERSION" type="int" value="4"/>
+               <constant name="GTK_MICRO_VERSION" type="int" value="5"/>
                <constant name="GTK_MINOR_VERSION" type="int" value="19"/>
                <constant name="GTK_PAPER_NAME_A3" type="char*" value="iso_a3"/>
                <constant name="GTK_PAPER_NAME_A4" type="char*" value="iso_a4"/>


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