vala r1680 - in trunk: . vapi
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1680 - in trunk: . vapi
- Date: Mon, 7 Jul 2008 10:12:34 +0000 (UTC)
Author: juergbi
Date: Mon Jul 7 10:12:34 2008
New Revision: 1680
URL: http://svn.gnome.org/viewvc/vala?rev=1680&view=rev
Log:
2008-07-07 JÃrg Billeter <j bitron ch>
* vapi/glib-2.0.vapi:
Add string.length property and bool.to_string method,
fixes bug 527777
Modified:
trunk/ChangeLog
trunk/vapi/glib-2.0.vapi
Modified: trunk/vapi/glib-2.0.vapi
==============================================================================
--- trunk/vapi/glib-2.0.vapi (original)
+++ trunk/vapi/glib-2.0.vapi Mon Jul 7 10:12:34 2008
@@ -26,6 +26,13 @@
[SimpleType]
[CCode (cname = "gboolean", cheader_filename = "glib.h", type_id = "G_TYPE_BOOLEAN", marshaller_type_name = "BOOLEAN", get_value_function = "g_value_get_boolean", set_value_function = "g_value_set_boolean", default_value = "FALSE", type_signature = "b")]
public struct bool {
+ public string to_string () {
+ if (this) {
+ return "true";
+ } else {
+ return "false";
+ }
+ }
}
[SimpleType]
@@ -765,6 +772,10 @@
public static char[] skip;
public string substring (long offset, long len);
+
+ public long length {
+ get { return this.len (); }
+ }
}
[Import ()]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]