]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-*.0: Hide dedicated constructors of compact classes bound as structs
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 27 Mar 2018 16:49:18 +0000 (18:49 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 27 Mar 2018 20:39:21 +0000 (22:39 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=794733

vapi/gtk+-3.0.vapi
vapi/gtk+-4.0.vapi
vapi/metadata/Gtk-3.0.metadata
vapi/metadata/Gtk-4.0.metadata

index 2a20fc1cfefe0407d35e0b2e6762462f891098fd..5123bf9e2290d02d76a88d8ee996f76881a3b270 100644 (file)
@@ -10875,9 +10875,6 @@ namespace Gtk {
                public int16 right;
                public int16 top;
                public int16 bottom;
-               [CCode (has_construct_function = false, type = "GtkBorder*")]
-               [Version (since = "2.14")]
-               public Border ();
                public Gtk.Border? copy ();
                public void free ();
        }
@@ -10945,9 +10942,6 @@ namespace Gtk {
        public struct Requisition {
                public int width;
                public int height;
-               [CCode (has_construct_function = false, type = "GtkRequisition*")]
-               [Version (since = "3.0")]
-               public Requisition ();
                public Gtk.Requisition? copy ();
                public void free ();
        }
@@ -10972,8 +10966,6 @@ namespace Gtk {
                public weak string target;
                public uint flags;
                public uint info;
-               [CCode (has_construct_function = false, type = "GtkTargetEntry*")]
-               public TargetEntry (string target, uint flags, uint info);
                public Gtk.TargetEntry? copy ();
                public void free ();
        }
index 0c1e6ab4a4accacbd8a0a3eea6c3fa3cda68de3e..447c206b0ab9f7ea7b0ae0b987f1fd676a4b2d47 100644 (file)
@@ -12284,8 +12284,6 @@ namespace Gtk {
                public int16 right;
                public int16 top;
                public int16 bottom;
-               [CCode (has_construct_function = false, type = "GtkBorder*")]
-               public Border ();
                public Gtk.Border? copy ();
                public void free ();
        }
@@ -12323,8 +12321,6 @@ namespace Gtk {
        public struct Requisition {
                public int width;
                public int height;
-               [CCode (has_construct_function = false, type = "GtkRequisition*")]
-               public Requisition ();
                public Gtk.Requisition? copy ();
                public void free ();
        }
index 995eb1703af00b49511301d3e0ed61fab50d2c5a..8bf4561847cf3aa90dd9c55e26bac793a23b074b 100644 (file)
@@ -23,6 +23,14 @@ TargetEntry struct
 TextIter struct
 TreeIter struct
 
+// Hide dedicated constructors of former compact classes
+Border
+  .new skip
+Requisition
+  .new skip
+TargetEntry
+  .new skip
+
 // Bug #636812: no support for annotating the type of a closure
 AccelGroup
   .connect*.closure type="owned Gtk.AccelGroupActivate"
index d3059210b57b80b37bb3136f9ad6b80da3b41f1d..957a027022b0aaca340926f9e0f0bf0c3d523f60 100644 (file)
@@ -23,6 +23,12 @@ Requisition struct
 TextIter struct
 TreeIter struct
 
+// Hide dedicated constructors of former compact classes
+Border
+  .new skip
+Requisition
+  .new skip
+
 // Bug #636812: no support for annotating the type of a closure
 AccelGroup
   .connect*.closure type="owned Gtk.AccelGroupActivate"