summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Barrett <bob@bob131.so>2017-12-01 00:05:42 +1100
committerRico Tzschichholz <ricotz@ubuntu.com>2017-12-09 14:34:50 +0100
commit9d88b804359c20c5633d990135607ddb728a95d9 (patch)
tree965c99292ee583a80c497ab637bbf5275a2d785c
parent6544f8d83cbdb0b185503bfcf354deb67871e287 (diff)
downloadvala-9d88b804359c20c5633d990135607ddb728a95d9.tar.gz
gobject-2.0: Add missing GType constants for fundamentals
At present, only a handful of the G_TYPE_* are declared as constants GType defines, adding a hurdle to vala programs wanting to use GObject's fundamental type introspection facilities. This commit simply adds declarations for all the constant-valued GTypes listed in the GObject documentation. https://bugzilla.gnome.org/show_bug.cgi?id=791023
-rw-r--r--vapi/gobject-2.0.vapi17
1 files changed, 17 insertions, 0 deletions
diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi
index c7ec81b7c..fc19dfe10 100644
--- a/vapi/gobject-2.0.vapi
+++ b/vapi/gobject-2.0.vapi
@@ -520,11 +520,28 @@ namespace GLib {
[CCode (get_value_function = "g_value_get_gtype", marshaller_type_name = "GTYPE", set_value_function = "g_value_set_gtype", type_id = "G_TYPE_GTYPE")]
[GIR (fullname = "GType")]
public struct Type : ulong {
+ public const GLib.Type BOOLEAN;
public const GLib.Type BOXED;
+ public const GLib.Type CHAR;
+ public const GLib.Type DOUBLE;
public const GLib.Type ENUM;
public const GLib.Type FLAGS;
+ public const GLib.Type FLOAT;
+ public const GLib.Type INT;
+ public const GLib.Type INT64;
public const GLib.Type INTERFACE;
public const GLib.Type INVALID;
+ public const GLib.Type LONG;
+ public const GLib.Type NONE;
+ public const GLib.Type OBJECT;
+ public const GLib.Type PARAM;
+ public const GLib.Type POINTER;
+ public const GLib.Type STRING;
+ public const GLib.Type UCHAR;
+ public const GLib.Type UINT;
+ public const GLib.Type UINT64;
+ public const GLib.Type ULONG;
+ public const GLib.Type VARIANT;
public void add_class_private (size_t private_size);
[CCode (array_length_type = "guint")]
public GLib.Type[] children ();