[vala] glib-2.0: add annotations for using GTimeSpan as a GObject property
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: add annotations for using GTimeSpan as a GObject property
- Date: Mon, 17 Oct 2011 06:36:42 +0000 (UTC)
commit 5fa4ab5f1a28d653c7854a54dd4c669e7e3e391d
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 03ef2c7..e540a4d 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]