[libpeas] Only enable the C plugin loader once
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Only enable the C plugin loader once
- Date: Sun, 12 Jun 2011 19:14:49 +0000 (UTC)
commit 43a3e7423a27cfb95972081a171e36058009bf78
Author: Garrett Regier <alias301 gmail com>
Date: Fri Jun 10 00:18:13 2011 -0700
Only enable the C plugin loader once
libpeas/peas-engine.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index 5ed757a..805e88a 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -299,8 +299,6 @@ peas_engine_init (PeasEngine *engine)
PeasEnginePrivate);
engine->priv->in_dispose = FALSE;
-
- peas_engine_enable_loader (engine, "C");
}
static void
@@ -575,6 +573,9 @@ peas_engine_class_init (PeasEngineClass *klass)
(GEqualFunc) equal_lowercase,
(GDestroyNotify) g_free,
(GDestroyNotify) loader_destroy);
+
+ /* The C plugin loader is always enabled */
+ g_hash_table_insert (loaders, g_strdup ("C"), g_new0 (LoaderInfo, 1));
}
static PeasObjectModule *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]