[gnome-builder/wip/chergert/perspective] libide: log plugin information durng application startup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/perspective] libide: log plugin information durng application startup
- Date: Tue, 17 Nov 2015 05:52:33 +0000 (UTC)
commit 40bd995d9e545f1e531badbc4296ec4fb54ee20a
Author: Christian Hergert <chergert redhat com>
Date: Mon Nov 16 20:47:49 2015 -0800
libide: log plugin information durng application startup
libide/ide-application.c | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/libide/ide-application.c b/libide/ide-application.c
index be80dd9..44c03f0 100644
--- a/libide/ide-application.c
+++ b/libide/ide-application.c
@@ -76,6 +76,7 @@ ide_application_load_plugins (IdeApplication *self)
{
PeasEngine *engine = peas_engine_get_default ();
const GList *list;
+ const GList *iter;
peas_engine_enable_loader (engine, "python3");
@@ -114,12 +115,22 @@ ide_application_load_plugins (IdeApplication *self)
"resource:///org/gnome/builder/plugins/editor",
"resource:///org/gnome/builder/plugins/editor");
+ peas_engine_rescan_plugins (engine);
+
list = peas_engine_get_plugin_list (engine);
- for (; list; list = list->next)
+ for (iter = list; iter; iter = iter->next)
+ g_debug ("Discovered plugin \"%s\"", peas_plugin_info_get_module_name (iter->data));
+
+ for (iter = list; iter; iter = iter->next)
{
- if (ide_application_can_load_plugin (self, list->data))
- peas_engine_load_plugin (engine, list->data);
+ PeasPluginInfo *plugin_info = iter->data;
+
+ if (ide_application_can_load_plugin (self, plugin_info))
+ {
+ g_debug ("Loading plugin \"%s\"", peas_plugin_info_get_module_name (plugin_info));
+ peas_engine_load_plugin (engine, plugin_info);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]