]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIDL-based bindings to fix unsupported type-arguments 74e33e1213504ebd604dca6a3e8ffeabbd060c22
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 20 Sep 2018 13:43:06 +0000 (15:43 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 20 Sep 2018 16:40:26 +0000 (18:40 +0200)
vapi/gdk-2.0.vapi
vapi/goocanvas.vapi
vapi/gtk+-2.0.vapi
vapi/packages/gdk-2.0/gdk-2.0-custom.vala
vapi/packages/goocanvas/goocanvas-custom.vala
vapi/packages/gtk+-2.0/gtk+-2.0.metadata

index 4c57bd5d8fe5a6cc2f0b7ace4404a61fda5e39fa..1bf77c18624cdcd117964182ec625b638b9fa033 100644 (file)
@@ -5088,8 +5088,8 @@ namespace Gdk {
                public virtual signal void to_embedder (double p0, double p1, void* p2, void* p3);
        }
        [CCode (cheader_filename = "gdk/gdk.h")]
-       [SimpleType]
-       public struct Atom {
+       [IntegerType]
+       public struct Atom : uint {
                [CCode (cname = "GDK_NONE")]
                public static Gdk.Atom NONE;
                public static Gdk.Atom intern (string atom_name, bool only_if_exists);
index 614cb45a640b5136bd65a77fd13a98b7ddbee3d3..a7591c810323b2cbb5bac186a8f4d730c73e2309 100644 (file)
@@ -29,7 +29,7 @@ namespace Goo {
                public void convert_to_pixels (ref double x, ref double y);
                public unowned Cairo.Context create_cairo_context ();
                public virtual unowned Goo.CanvasItem create_item (Goo.CanvasItemModel model);
-               public static void create_path (GLib.Array<Goo.CanvasPathCommand> commands, Cairo.Context cr);
+               public static void create_path (GLib.Array<Goo.CanvasPathCommand?> commands, Cairo.Context cr);
                public void get_bounds (out unowned double? left, out unowned double? top, out unowned double? right, out unowned double? bottom);
                public double get_default_line_width ();
                public unowned Goo.CanvasItem? get_item (Goo.CanvasItemModel model);
@@ -44,7 +44,7 @@ namespace Goo {
                public void grab_focus (Goo.CanvasItem item);
                public Gdk.GrabStatus keyboard_grab (Goo.CanvasItem item, bool owner_events, uint32 time);
                public void keyboard_ungrab (Goo.CanvasItem item, uint32 time);
-               public static GLib.Array<Goo.CanvasPathCommand> parse_path_data (string path_data);
+               public static GLib.Array<Goo.CanvasPathCommand?> parse_path_data (string path_data);
                public Gdk.GrabStatus pointer_grab (Goo.CanvasItem item, Gdk.EventMask event_mask, Gdk.Cursor? cursor, uint32 time);
                public void pointer_ungrab (Goo.CanvasItem item, uint32 time);
                public void register_widget_item (Goo.CanvasWidget witem);
@@ -630,7 +630,7 @@ namespace Goo {
        [CCode (cheader_filename = "goocanvas.h")]
        public class CanvasStyle : GLib.Object {
                public weak Goo.CanvasStyle? parent;
-               public weak GLib.Array<Goo.CanvasStyleProperty> properties;
+               public weak GLib.Array<Goo.CanvasStyleProperty?> properties;
                [CCode (has_construct_function = false)]
                public CanvasStyle ();
                public Goo.CanvasStyle copy ();
@@ -912,7 +912,7 @@ namespace Goo {
        [CCode (cheader_filename = "goocanvas.h")]
        public struct CanvasItemSimpleData {
                public Cairo.Matrix? transform;
-               public weak GLib.Array<Goo.CanvasPathCommand> clip_path_commands;
+               public weak GLib.Array<Goo.CanvasPathCommand?> clip_path_commands;
                public weak Goo.CanvasStyle style;
                public weak string tooltip;
                public double visibility_threshold;
index 8b9679e0c1725ec0baa8b8b2f41f58323a87efd3..0ed7c0b5168be691878231a29ea86dd3a5952764 100644 (file)
@@ -3795,7 +3795,7 @@ namespace Gtk {
                public void set_property_value (string name, Gtk.SettingsValue svalue);
                public void set_string_property (string name, string v_string, string origin);
                [NoAccessorMethod]
-               public GLib.HashTable<string,Gdk.Color> color_hash { owned get; }
+               public GLib.HashTable<string,Gdk.Color?> color_hash { owned get; }
                [NoAccessorMethod]
                public bool gtk_alternative_button_order { get; set; }
                [NoAccessorMethod]
index 8e6e9be3a70322e65bebc7c6c851e5ddfc01c47c..3028c005905ea8120162f77bb4ef70735f1e2f47 100644 (file)
@@ -26,8 +26,8 @@ namespace Gdk {
        public const Atom SELECTION_CLIPBOARD;
 
        [CCode (cheader_filename = "gdk/gdk.h")]
-       [SimpleType]
-       public struct Atom {
+       [IntegerType]
+       public struct Atom : uint {
                [CCode (cname="GDK_NONE")]
                public static Atom NONE;
        }
index e40de41abd376c51d34052da6446cff851e375a4..69befb7a0ab9b1ef6d59ad2a1466c7c7fdce651e 100644 (file)
@@ -41,8 +41,8 @@ namespace Goo
        {
                [CCode (has_construct_function = false)]
                public Canvas();
-               public static void create_path(GLib.Array<CanvasPathCommand> commands, Cairo.Context cr);
-               public static GLib.Array<CanvasPathCommand> parse_path_data (string path_data);
+               public static void create_path(GLib.Array<CanvasPathCommand?> commands, Cairo.Context cr);
+               public static GLib.Array<CanvasPathCommand?> parse_path_data (string path_data);
                public GLib.List<unowned CanvasItem>? get_items_at (double x, double y, bool is_pointer_event);
                public GLib.List<unowned CanvasItem>? get_items_in_area (Goo.CanvasBounds area, bool inside_area, bool allow_overlaps, bool include_containers);
        }
@@ -152,7 +152,7 @@ namespace Goo
        public class CanvasStyle
        {
                public unowned Goo.CanvasStyle? parent;
-               public unowned GLib.Array<CanvasStyleProperty> properties;
+               public unowned GLib.Array<CanvasStyleProperty?> properties;
        }
 
        public class CanvasTable
@@ -203,7 +203,7 @@ namespace Goo
        public struct CanvasItemSimpleData
        {
                public Cairo.Matrix? transform;
-               public weak GLib.Array<CanvasPathCommand> clip_path_commands;
+               public weak GLib.Array<CanvasPathCommand?> clip_path_commands;
        }
 
        /* Trying to describe a C union with dummy structs */
index 3a82a152831140362867f16870497b69c94d1bc2..d9c6218a3391a7831cdb5ea6fdb58a71c2bdc681 100644 (file)
@@ -672,7 +672,7 @@ gtk_selection_data_get_uris is_array="1" transfer_ownership="1" array_null_termi
 gtk_selection_data_set.length hidden="1"
 gtk_selection_data_set_uris.uris is_array="1" no_array_length="1" array_null_terminated="1"
 GtkSettings.queued_settings hidden="1"
-GtkSettings:color-hash type_arguments="string,Gdk.Color"
+GtkSettings:color-hash type_arguments="string,Gdk.Color?"
 GtkSettingsValue is_value_type="1"
 gtk_show_about_dialog ellipsis="1"
 gtk_show_about_dialog.parent nullable="1"