pygobject r1061 - in trunk: . gio



Author: gianmt
Date: Tue Apr 14 19:54:46 2009
New Revision: 1061
URL: http://svn.gnome.org/viewvc/pygobject?rev=1061&view=rev

Log:
2009-04-14  Gian Mario Tagliaretti  <gianmt gnome org>

	* gio/gfile.override: (_wrap_g_file_copy_async) change argument order
	to keep it consistent with the other methods.



Modified:
   trunk/ChangeLog
   trunk/gio/gfile.override

Modified: trunk/gio/gfile.override
==============================================================================
--- trunk/gio/gfile.override	(original)
+++ trunk/gio/gfile.override	Tue Apr 14 19:54:46 2009
@@ -589,10 +589,9 @@
 			PyObject *args,
 			PyObject *kwargs)
 {
-  /* FIXME: Double-check argument order. */
-  static char *kwlist[] = { "destination", "callback", "flags", "io_priority",
-			    "user_data", "cancellable", "progress_callback", 
-                            "progress_callback_data", NULL };
+  static char *kwlist[] = { "destination", "callback", "progress_callback",
+                            "flags", "io_priority", "cancellable",
+                            "user_data", "progress_callback_data", NULL };
   PyGIONotify *notify, *progress_notify;
   PyObject *py_flags = NULL;
   PyGObject *destination = NULL;
@@ -609,16 +608,16 @@
   progress_notify = pygio_notify_new_slave(notify);
 
   if (!PyArg_ParseTupleAndKeywords(args, kwargs,
-                                   "O!O|OiOOOO:File.copy_async",
+                                   "O!O|OOiOOO:File.copy_async",
                                    kwlist,
-				   &PyGFile_Type,
-				   &destination,
+                                   &PyGFile_Type,
+                                   &destination,
                                    &notify->callback,
-				   &py_flags,
+                                   &progress_notify->callback,
+                                   &py_flags,
                                    &io_priority,
-                                   &notify->data,
                                    &pycancellable,
-                                   &progress_notify->callback,
+                                   &notify->data,
                                    &progress_notify->data))
       goto error;
 



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