diff options
author | Ryan Hope <ryanhope97@gmail.com> | 2022-07-12 21:38:54 +0000 |
---|---|---|
committer | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2022-07-15 21:36:03 +0200 |
commit | 04255e45654bd49f1974a79baeafb33d228f6f71 (patch) | |
tree | fbb0bd61af3a9de5664fb03fed29c4066bbd6e8e /gio/gmemorysettingsbackend.c | |
parent | c1eb93d2a264372f35f140fef3777aea20595f71 (diff) | |
download | glib-04255e45654bd49f1974a79baeafb33d228f6f71.tar.gz |
Add missing extension point register for for GMemorySettingsBackend
Using GMemorySettingsBackend before any other GSettingsBackend would
cause the following error: "Tried to implement non-registered extension
point gsettings-backend". This is due to a missing call to
_g_io_modules_ensure_extension_points_registered() in the GMemorySettingsBackend
type definition which registers the gsettings-backend extension point.
Diffstat (limited to 'gio/gmemorysettingsbackend.c')
-rw-r--r-- | gio/gmemorysettingsbackend.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gio/gmemorysettingsbackend.c b/gio/gmemorysettingsbackend.c index c0e4c807a..0ebc604ae 100644 --- a/gio/gmemorysettingsbackend.c +++ b/gio/gmemorysettingsbackend.c @@ -23,7 +23,7 @@ #include "gsimplepermission.h" #include "gsettingsbackendinternal.h" -#include "giomodule.h" +#include "giomodule-priv.h" #define G_TYPE_MEMORY_SETTINGS_BACKEND (g_memory_settings_backend_get_type()) @@ -41,6 +41,7 @@ typedef struct G_DEFINE_TYPE_WITH_CODE (GMemorySettingsBackend, g_memory_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, "memory", 10)) |