]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-4.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>
Wed, 28 Mar 2018 06:53:37 +0000 (08:53 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=794733

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

index 2cd39332f8e62af0938343769a678ae45e64db00..918abd97a59e2f0ca42f87377af7a7206c7ab94d 100644 (file)
@@ -15206,9 +15206,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 ();
        }
@@ -15266,9 +15263,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 ();
        }
index 26f8c18badc457e4ff80d5cd35fd478943939206..8f7c65feb5757be320d8111f761f5b54e7ce99f6 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"