[pygobject] Add wrapper for gio.FileAttributeMatcher
- From: Gian Mario Tagliaretti <gianmt src gnome org>
- To: svn-commits-list gnome org
- Subject: [pygobject] Add wrapper for gio.FileAttributeMatcher
- Date: Wed, 13 May 2009 15:57:22 -0400 (EDT)
commit 90cd8b7c4a25cd2ecb751f8337b401c98538272b
Author: Gian Mario Tagliaretti <gianmt gnome org>
Date: Wed May 13 21:54:39 2009 +0200
Add wrapper for gio.FileAttributeMatcher
added a boxed type for gio.FileAttributeMatcher which has been forgotten while
wrapping the gio API. This should probably be done in gio itself.
---
gio/gfileinfo.override | 24 ++++++++++++++++++++++--
gio/gio-types.defs | 7 +++++++
gio/gio.override | 2 ++
3 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/gio/gfileinfo.override b/gio/gfileinfo.override
index 9769a65..401a590 100644
--- a/gio/gfileinfo.override
+++ b/gio/gfileinfo.override
@@ -1,8 +1,9 @@
/* -*- Mode: C; c-basic-offset: 4 -*-
* pygobject - Python bindings for GObject
* Copyright (C) 2008 Johan Dahlin
+ * 2009 Gian Mario Tagliaretti
*
- * gfile.override: module overrides for GInputStream
+ * gfileinfo.override: module overrides for GFileInfo
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -19,6 +20,26 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA
*/
+
+%%
+headers
+
+#ifndef G_TYPE_FILE_ATTRIBUTE_MATCHER
+#define G_TYPE_FILE_ATTRIBUTE_MATCHER (_g_file_attribute_matcher_get_type ())
+
+static GType _g_file_attribute_matcher_get_type (void)
+{
+ static GType our_type = 0;
+
+ if (our_type == 0)
+ our_type = g_boxed_type_register_static ("GFileAttributeMatcher",
+ (GBoxedCopyFunc)g_file_attribute_matcher_ref,
+ (GBoxedFreeFunc)g_file_attribute_matcher_unref);
+
+ return our_type;
+}
+#endif
+
%%
override g_file_info_list_attributes kwargs
static PyObject *
@@ -66,5 +87,4 @@ _wrap_g_file_info_get_modification_time(PyGObject *self, PyObject *unused)
/* GFileInfo.get_attribute_data: No ArgType for GFileAttributeType* */
/* GFileInfo.set_attribute: No ArgType for gpointer */
-/* GFileInfo.set_attribute_mask: No ArgType for GFileAttributeMatcher* */
/* GFileInfo.set_modification_time: No ArgType for GTimeVal* */
diff --git a/gio/gio-types.defs b/gio/gio-types.defs
index 4a6d6b2..d12cb2d 100644
--- a/gio/gio-types.defs
+++ b/gio/gio-types.defs
@@ -66,6 +66,13 @@
(gtype-id "G_TYPE_VOLUME")
)
+; boxed definitions ...
+
+(define-boxed FileAttributeMatcher
+ (in-module "gio")
+ (c-name "GFileAttributeMatcher")
+ (gtype-id "G_TYPE_FILE_ATTRIBUTE_MATCHER")
+)
; object definitions ...
diff --git a/gio/gio.override b/gio/gio.override
index c117fdf..ea4c4ec 100644
--- a/gio/gio.override
+++ b/gio/gio.override
@@ -245,6 +245,8 @@ include
ignore-glob
*_get_type
*free
+ *_ref
+ *_unref
g_async_result_get_user_data
g_file_new_from_commandline_arg
g_file_new_from_path
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]