summaryrefslogtreecommitdiff
path: root/src/plugins/pglist.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-08-29 22:30:58 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-08-29 22:30:58 (GMT)
commit6ba73df8224dc2a88fe5f37a331960936758036e (patch)
tree3db220cc946f3a23887016f3922fe94545e27620 /src/plugins/pglist.c
parentd91239074b9042988d08093948059096942bdcfc (diff)
Skipped the link to the global reference space when loading plugins.
Diffstat (limited to 'src/plugins/pglist.c')
-rw-r--r--src/plugins/pglist.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/plugins/pglist.c b/src/plugins/pglist.c
index 2edc392..112a560 100644
--- a/src/plugins/pglist.c
+++ b/src/plugins/pglist.c
@@ -51,8 +51,6 @@ typedef struct _pg_array
/* Propriétés de l'ensemble des greffons */
typedef struct _plugins_list
{
- GObject *ref; /* Référencement global */
-
pg_array *all; /* Liste de tous les greffons */
pg_array sorted[PGA_COUNT]; /* Tri par catégories */
@@ -73,7 +71,7 @@ void browse_directory_for_plugins(plugins_list *, const char *);
/******************************************************************************
* *
-* Paramètres : ref = espace de référencement global. *
+* Paramètres : - *
* *
* Description : Procède au chargement des différents greffons trouvés. *
* *
@@ -83,13 +81,10 @@ void browse_directory_for_plugins(plugins_list *, const char *);
* *
******************************************************************************/
-bool init_all_plugins(GObject *ref)
+bool init_all_plugins(void)
{
size_t i; /* Boucle de parcours */
- _list.ref = ref;
- g_object_ref(ref);
-
for (i = 0; i < PGA_COUNT; i++)
_list.sorted[i].action = PGA_EMPTY;
@@ -125,8 +120,6 @@ void exit_all_plugins(void)
for (i = 0; i < PGA_COUNT; i++)
free(_list.sorted[i].plugins);
- g_object_unref(_list.ref);
-
}
@@ -197,7 +190,7 @@ void browse_directory_for_plugins(plugins_list *list, const char *dir)
else
{
- plugin = g_plugin_module_new(filename, _list.ref);
+ plugin = g_plugin_module_new(filename);
if (plugin != NULL)
add_plugin_to_main_list(plugin);