summaryrefslogtreecommitdiff
path: root/mate-panel/panel-modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-modules.c')
-rw-r--r--mate-panel/panel-modules.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mate-panel/panel-modules.c b/mate-panel/panel-modules.c
index af26d634..05c4bad7 100644
--- a/mate-panel/panel-modules.c
+++ b/mate-panel/panel-modules.c
@@ -2,6 +2,7 @@
* panel-modules.c
*
* Copyright (C) 2010 Vincent Untz <[email protected]>
+ * Copyright (C) 2012-2021 MATE Developers
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -34,12 +35,10 @@ static void
panel_modules_ensure_extension_points_registered (void)
{
static gboolean registered_extensions = FALSE;
- GIOExtensionPoint *ep;
if (!registered_extensions) {
registered_extensions = TRUE;
-
- ep = g_io_extension_point_register (MATE_PANEL_APPLETS_MANAGER_EXTENSION_POINT_NAME);
+ GIOExtensionPoint *ep = g_io_extension_point_register (MATE_PANEL_APPLETS_MANAGER_EXTENSION_POINT_NAME);
g_io_extension_point_set_required_type (ep, PANEL_TYPE_APPLETS_MANAGER);
}
}
@@ -48,11 +47,11 @@ void
panel_modules_ensure_loaded (void)
{
static gboolean loaded_dirs = FALSE;
- const char *module_path;
panel_modules_ensure_extension_points_registered ();
if (!loaded_dirs) {
+ const char *module_path;
GList *modules;
loaded_dirs = TRUE;