vala r1002 - in trunk: . vapi



Author: juergbi
Date: Sat Feb  9 13:29:42 2008
New Revision: 1002
URL: http://svn.gnome.org/viewvc/vala?rev=1002&view=rev

Log:
2008-02-09  Juerg Billeter  <j bitron ch>

	* vapi/glib-2.0.vapi: remove static modifier from GSourceFunc
	  binding


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	Sat Feb  9 13:29:42 2008
@@ -1079,10 +1079,10 @@
 	}
 
 	public static class Timeout {
-		public static uint add (uint interval, SourceFunc function, pointer data);
-		public static uint add_full (int priority, uint interval, SourceFunc function, pointer data, DestroyNotify notify);
-		public static uint add_seconds (uint interval, SourceFunc function, pointer data);
-		public static uint add_seconds_full (int priority, uint interval, SourceFunc function, pointer data, DestroyNotify notify);
+		public static uint add (uint interval, SourceFunc function);
+		public static uint add_full (int priority, uint interval, SourceFunc function, DestroyNotify notify);
+		public static uint add_seconds (uint interval, SourceFunc function);
+		public static uint add_seconds_full (int priority, uint interval, SourceFunc function, DestroyNotify notify);
 	}
 	
 	public class IdleSource : Source {
@@ -1090,8 +1090,8 @@
 	}
 
 	public static class Idle {
-		public static uint add (SourceFunc function, pointer data);
-		public static uint add_full (int priority, SourceFunc function, pointer data, DestroyNotify notify);
+		public static uint add (SourceFunc function);
+		public static uint add_full (int priority, SourceFunc function, DestroyNotify notify);
 		public static bool remove_by_data (pointer data);
 	}
 
@@ -1129,7 +1129,7 @@
 		public bool get_can_recurse ();
 		public uint get_id ();
 		public weak MainContext get_context ();
-		public void set_callback (SourceFunc func, pointer data, DestroyNotify notify);
+		public void set_callback (SourceFunc func, DestroyNotify notify);
 		public void set_callback_indirect (pointer callback_data, SourceCallbackFuncs callback_funcs);
 		public void add_poll (ref PollFD fd);
 		public void remove_poll (ref PollFD fd);
@@ -1143,7 +1143,7 @@
 	
 	public static delegate bool SourcePrepareFunc (Source source, out int timeout_);
 	public static delegate bool SourceCheckFunc (Source source);
-	public static delegate bool SourceDispatchFunc (Source source, SourceFunc _callback, pointer user_data);
+	public static delegate bool SourceDispatchFunc (Source source, SourceFunc _callback);
 	public static delegate void SourceFinalizeFunc (Source source);
 	
 	public class SourceFuncs {
@@ -1155,7 +1155,7 @@
 	
 	public static delegate void SourceCallbackRefFunc (pointer cb_data);
 	public static delegate void SourceCallbackUnrefFunc (pointer cb_data);
-	public static delegate void SourceCallbackGetFunc (pointer cb_data, Source source, SourceFunc func, pointer data);
+	public static delegate void SourceCallbackGetFunc (pointer cb_data, Source source, SourceFunc func);
 	
 	public class SourceCallbackFuncs {
 		public SourceCallbackRefFunc @ref;
@@ -1163,7 +1163,7 @@
 		public SourceCallbackGetFunc @get;
 	}
 	
-	public static delegate bool SourceFunc (pointer data);
+	public delegate bool SourceFunc ();
 
 	[ErrorDomain]
 	public enum ThreadError {



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