mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-19 04:01:57 +02:00
gio: Add a boxed type for GFileAttributeMatcher
https://bugzilla.gnome.org/show_bug.cgi?id=616892
This commit is contained in:
parent
4487b326d7
commit
f39a49b036
@ -24,6 +24,7 @@ g_emblem_get_type
|
|||||||
g_emblem_origin_get_type
|
g_emblem_origin_get_type
|
||||||
g_emblemed_icon_get_type
|
g_emblemed_icon_get_type
|
||||||
g_file_attribute_info_flags_get_type
|
g_file_attribute_info_flags_get_type
|
||||||
|
g_file_attribute_matcher_get_type
|
||||||
g_file_attribute_status_get_type
|
g_file_attribute_status_get_type
|
||||||
g_file_attribute_type_get_type
|
g_file_attribute_type_get_type
|
||||||
g_file_copy_flags_get_type
|
g_file_copy_flags_get_type
|
||||||
|
@ -2148,6 +2148,24 @@ matcher_add (GFileAttributeMatcher *matcher,
|
|||||||
g_array_append_val (matcher->more_sub_matchers, s);
|
g_array_append_val (matcher->more_sub_matchers, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GType
|
||||||
|
g_file_attribute_matcher_get_type (void)
|
||||||
|
{
|
||||||
|
static volatile gsize g_define_type_id__volatile = 0;
|
||||||
|
|
||||||
|
if (g_once_init_enter (&g_define_type_id__volatile))
|
||||||
|
{
|
||||||
|
GType g_define_type_id =
|
||||||
|
g_boxed_type_register_static (I_("GFileAttributeMatcher"),
|
||||||
|
(GBoxedCopyFunc) g_file_attribute_matcher_ref,
|
||||||
|
(GBoxedFreeFunc) g_file_attribute_matcher_unref);
|
||||||
|
|
||||||
|
g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
return g_define_type_id__volatile;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_file_attribute_matcher_new:
|
* g_file_attribute_matcher_new:
|
||||||
* @attributes: an attribute string to match.
|
* @attributes: an attribute string to match.
|
||||||
|
@ -935,6 +935,7 @@ void g_file_info_set_symlink_target (GFileInfo *info,
|
|||||||
void g_file_info_set_sort_order (GFileInfo *info,
|
void g_file_info_set_sort_order (GFileInfo *info,
|
||||||
gint32 sort_order);
|
gint32 sort_order);
|
||||||
|
|
||||||
|
GType g_file_attribute_matcher_get_type (void) G_GNUC_CONST;
|
||||||
GFileAttributeMatcher *g_file_attribute_matcher_new (const char *attributes);
|
GFileAttributeMatcher *g_file_attribute_matcher_new (const char *attributes);
|
||||||
GFileAttributeMatcher *g_file_attribute_matcher_ref (GFileAttributeMatcher *matcher);
|
GFileAttributeMatcher *g_file_attribute_matcher_ref (GFileAttributeMatcher *matcher);
|
||||||
void g_file_attribute_matcher_unref (GFileAttributeMatcher *matcher);
|
void g_file_attribute_matcher_unref (GFileAttributeMatcher *matcher);
|
||||||
|
@ -485,6 +485,7 @@ g_file_info_set_size
|
|||||||
g_file_info_set_modification_time
|
g_file_info_set_modification_time
|
||||||
g_file_info_set_symlink_target
|
g_file_info_set_symlink_target
|
||||||
g_file_info_set_sort_order
|
g_file_info_set_sort_order
|
||||||
|
g_file_attribute_matcher_get_type G_GNUC_CONST
|
||||||
g_file_attribute_matcher_new
|
g_file_attribute_matcher_new
|
||||||
g_file_attribute_matcher_ref
|
g_file_attribute_matcher_ref
|
||||||
g_file_attribute_matcher_unref
|
g_file_attribute_matcher_unref
|
||||||
|
Loading…
x
Reference in New Issue
Block a user