summaryrefslogtreecommitdiff
path: root/src/backend/plugins/config-env/config-env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/plugins/config-env/config-env.c')
-rw-r--r--src/backend/plugins/config-env/config-env.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/backend/plugins/config-env/config-env.c b/src/backend/plugins/config-env/config-env.c
index d7f5a73..6a326e0 100644
--- a/src/backend/plugins/config-env/config-env.c
+++ b/src/backend/plugins/config-env/config-env.c
@@ -19,7 +19,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
-#include <libpeas/peas.h>
+#include <gio/gio.h>
#include "config-env.h"
@@ -27,7 +27,6 @@
#include "px-plugin-config.h"
static void px_config_iface_init (PxConfigInterface *iface);
-G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
struct _PxConfigEnv {
GObject parent_instance;
@@ -161,14 +160,8 @@ px_config_env_get_config (PxConfig *config,
static void
px_config_iface_init (PxConfigInterface *iface)
{
+ iface->name = "config-env";
+ iface->priority = PX_CONFIG_PRIORITY_FIRST;
iface->is_available = px_config_env_is_available;
iface->get_config = px_config_env_get_config;
}
-
-G_MODULE_EXPORT void
-peas_register_types (PeasObjectModule *module)
-{
- peas_object_module_register_extension_type (module,
- PX_TYPE_CONFIG,
- PX_CONFIG_TYPE_ENV);
-}