summaryrefslogtreecommitdiff
path: root/src/backend/plugins/config-osx/config-osx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/plugins/config-osx/config-osx.c')
-rw-r--r--src/backend/plugins/config-osx/config-osx.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/backend/plugins/config-osx/config-osx.c b/src/backend/plugins/config-osx/config-osx.c
index 8a9e6e4..16813a0 100644
--- a/src/backend/plugins/config-osx/config-osx.c
+++ b/src/backend/plugins/config-osx/config-osx.c
@@ -19,16 +19,20 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#include <libpeas/peas.h>
#include <SystemConfiguration/SystemConfiguration.h>
+#include <gio/gio.h>
+
#include "config-osx.h"
#include "px-plugin-config.h"
#include "px-manager.h"
static void px_config_iface_init (PxConfigInterface *iface);
-G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
+
+struct _PxConfigOsX {
+ GObject parent_instance;
+};
G_DEFINE_FINAL_TYPE_WITH_CODE (PxConfigOsX,
px_config_osx,
@@ -330,14 +334,8 @@ px_config_osx_get_config (PxConfig *self,
static void
px_config_iface_init (PxConfigInterface *iface)
{
+ iface->name = "config-osx";
+ iface->priority = PX_CONFIG_PRIORITY_DEFAULT;
iface->is_available = px_config_osx_is_available;
iface->get_config = px_config_osx_get_config;
}
-
-G_MODULE_EXPORT void
-peas_register_types (PeasObjectModule *module)
-{
- peas_object_module_register_extension_type (module,
- PX_TYPE_CONFIG,
- PX_CONFIG_TYPE_OSX);
-}