[glib: 2/4] gio: Ensure extension points are registered when creating Settings backends
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/4] gio: Ensure extension points are registered when creating Settings backends
- Date: Fri, 15 Jul 2022 21:25:59 +0000 (UTC)
commit 924da751c2d3ed4636223343ebaa7364b97f8f93
Author: Ryan Hope <ryan hope exterity com>
Date: Wed Jul 13 10:58:51 2022 +0100
gio: Ensure extension points are registered when creating Settings backends
Add missing call to _g_io_modules_ensure_extension_points_registered() to
GRegistryBackend, GNullSettingsBackend, and GNextstepSettingsBackend
gio/gnextstepsettingsbackend.m | 3 ++-
gio/gnullsettingsbackend.c | 3 ++-
gio/gregistrysettingsbackend.c | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gio/gnextstepsettingsbackend.m b/gio/gnextstepsettingsbackend.m
index 9e1862b83d..5ecaec8592 100644
--- a/gio/gnextstepsettingsbackend.m
+++ b/gio/gnextstepsettingsbackend.m
@@ -23,7 +23,7 @@
#include "gsettingsbackendinternal.h"
#include "gsimplepermission.h"
-#include "giomodule.h"
+#include "giomodule-priv.h"
#import <Foundation/Foundation.h>
@@ -46,6 +46,7 @@ struct _GNextstepSettingsBackend
G_DEFINE_TYPE_WITH_CODE (GNextstepSettingsBackend,
g_nextstep_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, "nextstep", 90));
diff --git a/gio/gnullsettingsbackend.c b/gio/gnullsettingsbackend.c
index 9aaacd86e5..cf12c1614d 100644
--- a/gio/gnullsettingsbackend.c
+++ b/gio/gnullsettingsbackend.c
@@ -22,7 +22,7 @@
#include "config.h"
#include "gsettingsbackendinternal.h"
-#include "giomodule.h"
+#include "giomodule-priv.h"
#include "gsimplepermission.h"
@@ -38,6 +38,7 @@ typedef GSettingsBackend GNullSettingsBackend;
G_DEFINE_TYPE_WITH_CODE (GNullSettingsBackend,
g_null_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, "null", 10))
diff --git a/gio/gregistrysettingsbackend.c b/gio/gregistrysettingsbackend.c
index aecccd3f7e..6250398770 100644
--- a/gio/gregistrysettingsbackend.c
+++ b/gio/gregistrysettingsbackend.c
@@ -93,7 +93,7 @@
#include "gregistrysettingsbackend.h"
#include "gsettingsbackend.h"
-#include "giomodule.h"
+#include "giomodule-priv.h"
#include <windows.h>
@@ -179,6 +179,7 @@ typedef struct {
G_DEFINE_TYPE_WITH_CODE (GRegistryBackend,
g_registry_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, "registry", 90))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]