mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
settings: Register the keyfile backend as extension
This was not done previously because the backend could not be instantiated without parameters.
This commit is contained in:
parent
26c8b29ee1
commit
5357a23321
@ -32,7 +32,7 @@
|
|||||||
#include "gfilemonitor.h"
|
#include "gfilemonitor.h"
|
||||||
#include "gsimplepermission.h"
|
#include "gsimplepermission.h"
|
||||||
#include "gsettingsbackendinternal.h"
|
#include "gsettingsbackendinternal.h"
|
||||||
#include "giomodule.h"
|
#include "giomodule-priv.h"
|
||||||
|
|
||||||
|
|
||||||
#define G_TYPE_KEYFILE_SETTINGS_BACKEND (g_keyfile_settings_backend_get_type ())
|
#define G_TYPE_KEYFILE_SETTINGS_BACKEND (g_keyfile_settings_backend_get_type ())
|
||||||
@ -71,9 +71,12 @@ typedef struct
|
|||||||
GFileMonitor *dir_monitor;
|
GFileMonitor *dir_monitor;
|
||||||
} GKeyfileSettingsBackend;
|
} GKeyfileSettingsBackend;
|
||||||
|
|
||||||
G_DEFINE_TYPE (GKeyfileSettingsBackend,
|
G_DEFINE_TYPE_WITH_CODE (GKeyfileSettingsBackend,
|
||||||
g_keyfile_settings_backend,
|
g_keyfile_settings_backend,
|
||||||
G_TYPE_SETTINGS_BACKEND)
|
G_TYPE_SETTINGS_BACKEND,
|
||||||
|
_g_io_modules_ensure_extension_points_registered ();
|
||||||
|
g_io_extension_point_implement (G_SETTINGS_BACKEND_EXTENSION_POINT_NAME,
|
||||||
|
g_define_type_id, "keyfile", 10))
|
||||||
|
|
||||||
static void
|
static void
|
||||||
compute_checksum (guint8 *digest,
|
compute_checksum (guint8 *digest,
|
||||||
|
Loading…
Reference in New Issue
Block a user