summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-03-27 18:49:18 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-03-27 22:39:21 +0200
commit54be0bfe198769ba69a12ec7bc30caba6e5aa74a (patch)
treed4a48ed6911050291124d37da455f57ddabef6e0
parent55d883a5b593be366aff440ead4571ee76d86d02 (diff)
downloadvala-54be0bfe198769ba69a12ec7bc30caba6e5aa74a.tar.gz
gtk+-*.0: Hide dedicated constructors of compact classes bound as structs
https://bugzilla.gnome.org/show_bug.cgi?id=794733
-rw-r--r--vapi/gtk+-3.0.vapi8
-rw-r--r--vapi/gtk+-4.0.vapi4
-rw-r--r--vapi/metadata/Gtk-3.0.metadata8
-rw-r--r--vapi/metadata/Gtk-4.0.metadata6
4 files changed, 14 insertions, 12 deletions
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 2a20fc1cf..5123bf9e2 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -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 ();
}
diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi
index 0c1e6ab4a..447c206b0 100644
--- a/vapi/gtk+-4.0.vapi
+++ b/vapi/gtk+-4.0.vapi
@@ -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 ();
}
diff --git a/vapi/metadata/Gtk-3.0.metadata b/vapi/metadata/Gtk-3.0.metadata
index 995eb1703..8bf456184 100644
--- a/vapi/metadata/Gtk-3.0.metadata
+++ b/vapi/metadata/Gtk-3.0.metadata
@@ -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"
diff --git a/vapi/metadata/Gtk-4.0.metadata b/vapi/metadata/Gtk-4.0.metadata
index d3059210b..957a02702 100644
--- a/vapi/metadata/Gtk-4.0.metadata
+++ b/vapi/metadata/Gtk-4.0.metadata
@@ -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"