pygobject r921 - trunk/gio
- From: gianmt svn gnome org
- To: svn-commits-list gnome org
- Subject: pygobject r921 - trunk/gio
- Date: Sat, 2 Aug 2008 21:55:37 +0000 (UTC)
Author: gianmt
Date: Sat Aug 2 21:55:37 2008
New Revision: 921
URL: http://svn.gnome.org/viewvc/pygobject?rev=921&view=rev
Log:
Fix a copy/paste pattern...
Modified:
trunk/gio/gfile.override
Modified: trunk/gio/gfile.override
==============================================================================
--- trunk/gio/gfile.override (original)
+++ trunk/gio/gfile.override Sat Aug 2 21:55:37 2008
@@ -869,49 +869,7 @@
Py_INCREF(Py_None);
return Py_None;
}
-%%
-override g_file_create_async kwargs
-static PyObject *
-_wrap_g_file_create_async(PyGObject *self, PyObject *args, PyObject *kwargs)
-{
- static char *kwlist[] = { "callback", "flags", "io_priority",
- "cancellable", "user_data", NULL };
- GCancellable *cancellable;
- PyGObject *pycancellable = NULL;
- GFileCreateFlags flags = G_FILE_CREATE_NONE;
- PyObject *py_flags = NULL;
- int io_priority = G_PRIORITY_DEFAULT;
- PyGIONotify *notify;
- notify = g_slice_new0(PyGIONotify);
-
- if (!PyArg_ParseTupleAndKeywords(args, kwargs,
- "O|OiOO:File.create_async",
- kwlist,
- ¬ify->callback,
- &flags, &io_priority,
- &pycancellable,
- ¬ify->data))
-
- {
- g_slice_free(PyGIONotify, notify);
- return NULL;
- }
-
- if (py_flags && pyg_flags_get_value(G_TYPE_FILE_CREATE_FLAGS,
- py_flags, (gpointer)&flags))
- return NULL;
-
- if (!pygio_check_cancellable(pycancellable, &cancellable))
- return NULL;
-
- g_file_create_async(G_FILE(self->obj), flags, io_priority, cancellable,
- (GAsyncReadyCallback)async_result_callback_marshal,
- notify);
-
- Py_INCREF(Py_None);
- return Py_None;
-}
/* GFile.eject_mountable */
/* GFile.find_enclosing_mount_async */
/* GFile.query_info_async */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]