gboxed: Add GBookmarkFile as Boxed types

Now that we've a copy function we can define it as a boxed type, making
it fully introspectable.
This commit is contained in:
Marco Trevisan (Treviño) 2022-10-12 16:02:28 +02:00 committed by Philip Withnall
parent 2e8375daa0
commit 60c935a9c4
3 changed files with 14 additions and 0 deletions

View File

@ -417,6 +417,7 @@ G_TYPE_OPTION_GROUP
G_TYPE_URI
G_TYPE_TREE
G_TYPE_PATTERN_SPEC
G_TYPE_BOOKMARK_FILE
<SUBSECTION Standard>
G_TYPE_IS_BOXED
@ -453,6 +454,7 @@ g_option_group_get_type
g_uri_get_type
g_tree_get_type
g_pattern_spec_get_type
g_bookmark_file_get_type
</SECTION>
<SECTION>

View File

@ -166,6 +166,7 @@ G_DEFINE_BOXED_TYPE (GDateTime, g_date_time, g_date_time_ref, g_date_time_unref)
G_DEFINE_BOXED_TYPE (GTimeZone, g_time_zone, g_time_zone_ref, g_time_zone_unref)
G_DEFINE_BOXED_TYPE (GKeyFile, g_key_file, g_key_file_ref, g_key_file_unref)
G_DEFINE_BOXED_TYPE (GMappedFile, g_mapped_file, g_mapped_file_ref, g_mapped_file_unref)
G_DEFINE_BOXED_TYPE (GBookmarkFile, g_bookmark_file, g_bookmark_file_copy, g_bookmark_file_free)
G_DEFINE_BOXED_TYPE (GMainLoop, g_main_loop, g_main_loop_ref, g_main_loop_unref)
G_DEFINE_BOXED_TYPE (GMainContext, g_main_context, g_main_context_ref, g_main_context_unref)

View File

@ -326,6 +326,15 @@ typedef gsize GType;
*/
#define G_TYPE_PATTERN_SPEC (g_pattern_spec_get_type ())
/**
* G_TYPE_BOOKMARK_FILE:
*
* The #GType for a boxed type holding a #GBookmarkFile.
*
* Since: 2.76
*/
#define G_TYPE_BOOKMARK_FILE (g_bookmark_file_get_type ())
GOBJECT_AVAILABLE_IN_ALL
GType g_date_get_type (void) G_GNUC_CONST;
GOBJECT_AVAILABLE_IN_ALL
@ -388,6 +397,8 @@ GOBJECT_AVAILABLE_IN_2_68
GType g_tree_get_type (void) G_GNUC_CONST;
GOBJECT_AVAILABLE_IN_2_70
GType g_pattern_spec_get_type (void) G_GNUC_CONST;
GOBJECT_AVAILABLE_IN_2_76
GType g_bookmark_file_get_type (void) G_GNUC_CONST;
GOBJECT_DEPRECATED_FOR('G_TYPE_VARIANT')
GType g_variant_get_gtype (void) G_GNUC_CONST;