gbookmarkfile: Add copy function

GBookmarkFile has everything for being introspectable, but it lacks a
GType, because it can't be copied. So provide a copy function that
deeply copies all the bookmark structures.

Add tests for this.
This commit is contained in:
Marco Trevisan (Treviño)
2022-10-12 15:44:22 +02:00
committed by Philip Withnall
parent 5f604460ef
commit 2e8375daa0
4 changed files with 215 additions and 8 deletions

View File

@@ -2152,6 +2152,7 @@ GBookmarkFile
G_BOOKMARK_FILE_ERROR
GBookmarkFileError
g_bookmark_file_new
g_bookmark_file_copy
g_bookmark_file_free
g_bookmark_file_load_from_file
g_bookmark_file_load_from_data