[vala/0.14] glib-2.0: add annotations for using GTimeSpan as a GObject property



commit 44238e4946f186bd7f22d3038af8ae3df676c4ee
Author: Evan Nemerson <evan coeus-group com>
Date:   Sat Oct 15 21:42:09 2011 -0700

    glib-2.0: add annotations for using GTimeSpan as a GObject property

 vapi/glib-2.0.vapi |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 3637061..194ff6b 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2459,6 +2459,9 @@ namespace GLib {
 		public unowned string? strptime (string buf, string format);
 	}
 
+	[SimpleType]
+	[CCode (cheader_filename = "glib.h", type_id = "G_TYPE_INT64", marshaller_type_name = "INT64", get_value_function = "g_value_get_int64", set_value_function = "g_value_set_int64", default_value = "0LL", type_signature = "x")]
+	[IntegerType (rank = 10)]
 	public struct TimeSpan : int64 {
 		public const TimeSpan DAY;
 		public const TimeSpan HOUR;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]