summaryrefslogtreecommitdiffstats
path: root/gio
diff options
context:
space:
mode:
authorGian Mario Tagliaretti <gianmt@gnome.org>2009-05-13 21:54:39 +0200
committerGian Mario Tagliaretti <gianmt@gnome.org>2009-05-13 21:56:18 +0200
commit90cd8b7c4a25cd2ecb751f8337b401c98538272b (patch)
tree8623b948dc76de0b239926d434c954524a93ed16 /gio
parente707447d9313f2f2ecba395cfe3682d5a5e859f4 (diff)
downloadpygobject-90cd8b7c4a25cd2ecb751f8337b401c98538272b.tar.gz
pygobject-90cd8b7c4a25cd2ecb751f8337b401c98538272b.tar.xz
pygobject-90cd8b7c4a25cd2ecb751f8337b401c98538272b.zip
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.
Diffstat (limited to 'gio')
-rw-r--r--gio/gfileinfo.override24
-rw-r--r--gio/gio-types.defs7
-rw-r--r--gio/gio.override2
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