[gedit] Prevent plugins engine from scanning loaders multiple times
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Prevent plugins engine from scanning loaders multiple times
- Date: Sun, 13 Jun 2010 10:32:18 +0000 (UTC)
commit 255ca7b2daa63a1c19311bd9952e0eaa3d765246
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Sun Jun 13 12:31:36 2010 +0200
Prevent plugins engine from scanning loaders multiple times
gedit/gedit-plugins-engine.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-plugins-engine.c b/gedit/gedit-plugins-engine.c
index 5704662..8902662 100644
--- a/gedit/gedit-plugins-engine.c
+++ b/gedit/gedit-plugins-engine.c
@@ -79,6 +79,8 @@ struct _GeditPluginsEnginePrivate
GHashTable *loaders;
gboolean activate_from_prefs;
+
+ guint scanned : 1;
};
GeditPluginsEngine *default_engine = NULL;
@@ -478,7 +480,7 @@ get_plugin_loader (GeditPluginsEngine *engine,
engine->priv->loaders,
loader_id);
- if (loader_info == NULL)
+ if (loader_info == NULL && !engine->priv->scanned)
{
gchar *loader_dir;
@@ -496,6 +498,8 @@ get_plugin_loader (GeditPluginsEngine *engine,
loader_info = (LoaderInfo *)g_hash_table_lookup (
engine->priv->loaders,
loader_id);
+
+ engine->priv->scanned = TRUE;
}
if (loader_info == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]