[vala] glib-2.0: Update GDateTime binding



commit 9edb65d951f56e14ea44ce81d2fce66024104485
Author: Jürg Billeter <j bitron ch>
Date:   Mon Oct 4 00:49:22 2010 +0200

    glib-2.0: Update GDateTime binding

 vapi/glib-2.0.vapi |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 797b28f..b6f97da 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2014,7 +2014,7 @@ namespace GLib {
 	}
 
 	namespace Filename {
-       public static string to_utf8 (string opsysstring, ssize_t len, out size_t bytes_read, out size_t bytes_written) throws ConvertError;
+		public static string to_utf8 (string opsysstring, ssize_t len, out size_t bytes_read, out size_t bytes_written) throws ConvertError;
 		public static string from_utf8 (string utf8string, ssize_t len, out size_t bytes_read, out size_t bytes_written) throws ConvertError;
 		public static string from_uri (string uri, out string hostname = null) throws ConvertError;
 		public static string to_uri (string filename, string? hostname = null) throws ConvertError;
@@ -2259,9 +2259,9 @@ namespace GLib {
 		public const TimeSpan MILLISECOND;
 	}
 
-        [Compact]
-        [CCode (ref_function = "g_date_time_ref", unref_function = "g_date_time_unref", type_id = "G_TYPE_DATE_TIME")]
-        public class DateTime {
+	[Compact]
+	[CCode (ref_function = "g_date_time_ref", unref_function = "g_date_time_unref", type_id = "G_TYPE_DATE_TIME")]
+	public class DateTime {
 		public DateTime.now (TimeZone tz);
 		public DateTime.now_local ();
 		public DateTime.now_utc ();
@@ -2283,13 +2283,14 @@ namespace GLib {
 		public DateTime add_seconds (double seconds);
 		public DateTime add_full (int years, int months, int days, int hours = 0, int minutes = 0, double seconds = 0);
 		public int compare (DateTime dt);
-		public TimeSpan difference (DateTime end);
+		public TimeSpan difference (DateTime begin);
 		public uint hash ();
 		public bool equal (DateTime dt);
 		public void get_ymd (out int year, out int month, out int day);
 		public int get_year ();
 		public int get_month ();
 		public int get_day_of_month ();
+		public int get_week_numbering_year ();
 		public int get_week_of_year ();
 		public int get_day_of_week ();
 		public int get_day_of_year ();
@@ -2318,9 +2319,9 @@ namespace GLib {
 		UNIVERSAL
 	}
 
-        [Compact]
-        [CCode (ref_function = "g_time_zone_ref", unref_function = "g_time_zone_unref")]
-        public class TimeZone {
+	[Compact]
+	[CCode (ref_function = "g_time_zone_ref", unref_function = "g_time_zone_unref")]
+	public class TimeZone {
 		public TimeZone (string identifier);
 		public TimeZone.utc ();
 		public TimeZone.local ();
@@ -2329,7 +2330,7 @@ namespace GLib {
 		public unowned string get_abbreviation (int interval);
 		public int32 get_offset (int interval);
 		public bool is_dst (int interval);
-        }
+	}
 
 	/* Random Numbers */
 



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