Bug 554745 - GFileAttributeInfoList should be boxed

2008-10-06  Colin Walters  <walters@verbum.org>

	Bug 554745 - GFileAttributeInfoList should be boxed

	* gio/gfileattribute.c: Define a boxed type for GFileAttributeList
	for convenience of bindings.
	* gio/gfileattribute.h: Prototype it.


svn path=/trunk/; revision=7573
This commit is contained in:
Colin Walters 2008-10-06 21:59:29 +00:00 committed by Colin Walters
parent 6a19b99a9d
commit b383c8f08f
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2008-10-06 Colin Walters <walters@verbum.org>
Bug 554745 - GFileAttributeInfoList should be boxed
* gio/gfileattribute.c: Define a boxed type for GFileAttributeList
for convenience of bindings.
* gio/gfileattribute.h: Prototype it.
2008-10-05 Pascal Terjan <pterjan@linuxfr.org>
Bug 554970 segfault when update-desktop-database is not available

View File

@ -326,6 +326,18 @@ _g_file_attribute_value_dup (const GFileAttributeValue *other)
return attr;
}
GType
g_file_attribute_info_list_get_type (void)
{
static GType type_id = 0;
if (!type_id)
type_id = g_boxed_type_register_static (g_intern_static_string ("GFileAttributeInfoList"),
(GBoxedCopyFunc) g_file_attribute_info_list_dup,
(GBoxedFreeFunc) g_file_attribute_info_list_unref);
return type_id;
}
static gboolean
valid_char (char c)
{

View File

@ -60,6 +60,7 @@ struct _GFileAttributeInfoList
int n_infos;
};
GType g_file_attribute_info_list_get_type (void);
GFileAttributeInfoList * g_file_attribute_info_list_new (void);
GFileAttributeInfoList * g_file_attribute_info_list_ref (GFileAttributeInfoList *list);
void g_file_attribute_info_list_unref (GFileAttributeInfoList *list);