pygobject r1051 - in trunk: . gio
- From: gianmt svn gnome org
- To: svn-commits-list gnome org
- Subject: pygobject r1051 - in trunk: . gio
- Date: Mon, 30 Mar 2009 22:56:59 +0000 (UTC)
Author: gianmt
Date: Mon Mar 30 22:56:59 2009
New Revision: 1051
URL: http://svn.gnome.org/viewvc/pygobject?rev=1051&view=rev
Log:
2009-03-31 Gian Mario Tagliaretti <gianmt gnome org>
* gio/gfile.override:
(_wrap_g_file_query_filesystem_info_async) Wrap new GFile method.
Modified:
trunk/ChangeLog
trunk/gio/gfile.override
Modified: trunk/gio/gfile.override
==============================================================================
--- trunk/gio/gfile.override (original)
+++ trunk/gio/gfile.override Mon Mar 30 22:56:59 2009
@@ -1374,6 +1374,54 @@
pygio_notify_free(notify);
return NULL;
}
+%%
+override g_file_query_filesystem_info_async kwargs
+static PyObject *
+_wrap_g_file_query_filesystem_info_async(PyGObject *self, PyObject *args, PyObject *kwargs)
+{
+ static char *kwlist[] = { "attributes", "callback",
+ "io_priority", "cancellable", "user_data", NULL };
+ PyGIONotify *notify;
+ char *attributes;
+ int io_priority = G_PRIORITY_DEFAULT;
+ GCancellable *cancellable = NULL;
+ PyGObject *py_cancellable = NULL;
+
+ notify = pygio_notify_new();
+
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs,
+ "sO|iOO:GFile.enumerate_children_async",
+ kwlist,
+ &attributes,
+ ¬ify->callback,
+ &io_priority,
+ &py_cancellable,
+ ¬ify->data))
+ goto error;
+
+ if (!pygio_notify_callback_is_valid(notify))
+ goto error;
+
+
+ if (!pygio_check_cancellable(py_cancellable, &cancellable))
+ goto error;
+
+ pygio_notify_reference_callback(notify);
+
+ g_file_query_filesystem_info_async(G_FILE(self->obj),
+ attributes,
+ io_priority,
+ (GCancellable *) cancellable,
+ (GAsyncReadyCallback)async_result_callback_marshal,
+ notify);
+
+ Py_INCREF(Py_None);
+ return Py_None;
+
+ error:
+ pygio_notify_free(notify);
+ return NULL;
+}
/* GFile.set_attributes_async */
/* GFile.set_display_name_async */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]