[gnome-builder] tools: initialize plugins from tools



commit 7e7dba10d5bcc91698afc71f737acc9e9cbb48d2
Author: Christian Hergert <christian hergert me>
Date:   Sun Aug 23 11:54:14 2015 -0700

    tools: initialize plugins from tools

 tools/ide-build.c              |    4 ++++
 tools/ide-list-build-flags.c   |    4 ++++
 tools/ide-list-devices.c       |    4 ++++
 tools/ide-list-diagnostics.c   |    5 +++++
 tools/ide-list-file-settings.c |    4 ++++
 tools/ide-list-files.c         |    4 ++++
 tools/ide-search.c             |    4 ++++
 7 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/tools/ide-build.c b/tools/ide-build.c
index 3bb82e1..df698c4 100644
--- a/tools/ide-build.c
+++ b/tools/ide-build.c
@@ -25,6 +25,8 @@
 #include <ide.h>
 #include <stdlib.h>
 
+#include "gb-plugins.h"
+
 static GMainLoop *gMainLoop;
 static gchar *gDeviceId;
 static gint gExitCode = EXIT_SUCCESS;
@@ -387,6 +389,8 @@ main (gint   argc,
   if (!gDeviceId)
     gDeviceId = g_strdup ("local");
 
+  gb_plugins_init ();
+
   ide_context_new_async (project_file, NULL, context_cb, NULL);
 
   g_main_loop_run (gMainLoop);
diff --git a/tools/ide-list-build-flags.c b/tools/ide-list-build-flags.c
index cf553d6..3634fd2 100644
--- a/tools/ide-list-build-flags.c
+++ b/tools/ide-list-build-flags.c
@@ -25,6 +25,8 @@
 #include <ide.h>
 #include <stdlib.h>
 
+#include "gb-plugins.h"
+
 static GMainLoop *gMainLoop;
 static gint gExitCode = EXIT_SUCCESS;
 static IdeContext *gContext;
@@ -139,6 +141,8 @@ main (gint   argc,
 
   project_file = g_file_new_for_path (project_path);
 
+  gb_plugins_init ();
+
   ide_context_new_async (project_file, NULL, context_cb, NULL);
 
   g_main_loop_run (gMainLoop);
diff --git a/tools/ide-list-devices.c b/tools/ide-list-devices.c
index 6daad3e..854cbee 100644
--- a/tools/ide-list-devices.c
+++ b/tools/ide-list-devices.c
@@ -25,6 +25,8 @@
 #include <ide.h>
 #include <stdlib.h>
 
+#include "gb-plugins.h"
+
 static GMainLoop *gMainLoop;
 static gint gExitCode = EXIT_SUCCESS;
 
@@ -118,6 +120,8 @@ main (gint   argc,
     project_path = argv [1];
   project_file = g_file_new_for_path (project_path);
 
+  gb_plugins_init ();
+
   ide_context_new_async (project_file, NULL, context_cb, NULL);
 
   g_main_loop_run (gMainLoop);
diff --git a/tools/ide-list-diagnostics.c b/tools/ide-list-diagnostics.c
index 8bd629c..7ef3257 100644
--- a/tools/ide-list-diagnostics.c
+++ b/tools/ide-list-diagnostics.c
@@ -25,6 +25,8 @@
 #include <ide.h>
 #include <stdlib.h>
 
+#include "gb-plugins.h"
+
 static GMainLoop *gMainLoop;
 static gint gExitCode = EXIT_SUCCESS;
 static GFile *gFile;
@@ -307,6 +309,9 @@ main (gint   argc,
   gFile = g_file_new_for_path (path);
 
   project_file = g_file_new_for_path (project_path);
+
+  gb_plugins_init ();
+
   ide_context_new_async (project_file, NULL, context_cb, NULL);
 
   g_main_loop_run (gMainLoop);
diff --git a/tools/ide-list-file-settings.c b/tools/ide-list-file-settings.c
index 6e8de98..6e216da 100644
--- a/tools/ide-list-file-settings.c
+++ b/tools/ide-list-file-settings.c
@@ -25,6 +25,8 @@
 #include <ide.h>
 #include <stdlib.h>
 
+#include "gb-plugins.h"
+
 static GMainLoop *gMainLoop;
 static gint gExitCode = EXIT_SUCCESS;
 static gchar **gPaths;
@@ -223,6 +225,8 @@ main (gint   argc,
 
   gPaths = (gchar **)g_ptr_array_free (strv, FALSE);
 
+  gb_plugins_init ();
+
   ide_context_new_async (project_file, NULL, context_cb, NULL);
 
   g_main_loop_run (gMainLoop);
diff --git a/tools/ide-list-files.c b/tools/ide-list-files.c
index 027e07a..5e97d81 100644
--- a/tools/ide-list-files.c
+++ b/tools/ide-list-files.c
@@ -25,6 +25,8 @@
 #include <ide.h>
 #include <stdlib.h>
 
+#include "gb-plugins.h"
+
 static GMainLoop *gMainLoop;
 static gint gExitCode = EXIT_SUCCESS;
 
@@ -136,6 +138,8 @@ main (gint   argc,
     project_path = argv [1];
   project_file = g_file_new_for_path (project_path);
 
+  gb_plugins_init ();
+
   ide_context_new_async (project_file, NULL, context_cb, NULL);
 
   g_main_loop_run (gMainLoop);
diff --git a/tools/ide-search.c b/tools/ide-search.c
index 1c34120..676e2bd 100644
--- a/tools/ide-search.c
+++ b/tools/ide-search.c
@@ -25,6 +25,8 @@
 #include <ide.h>
 #include <stdlib.h>
 
+#include "gb-plugins.h"
+
 static GMainLoop *gMainLoop;
 static gint gExitCode = EXIT_SUCCESS;
 static gchar *gSearchTerms;
@@ -135,6 +137,8 @@ main (gint   argc,
     g_string_append_printf (search_terms, " %s", argv [i]);
   gSearchTerms = g_string_free (search_terms, FALSE);
 
+  gb_plugins_init ();
+
   ide_context_new_async (project_file, NULL, context_cb, NULL);
 
   g_main_loop_run (gMainLoop);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]