[gnome-builder/wip/libide: 36/153] main: initialize libide



commit c61564aafde98a45b0ebaa61c6179ff2e0753c5e
Author: Christian Hergert <christian hergert me>
Date:   Sat Feb 7 19:42:08 2015 -0800

    main: initialize libide
    
    We need to set the program name so libide can manage the builds from the
    correct directory.
    
    Also, no need to initialize ggit, since that is done in libide.

 src/main.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index dfc9a4f..b38e3a5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -25,7 +25,7 @@
 #include <glib.h>
 #include <glib/gi18n.h>
 #include <gtk/gtk.h>
-#include <libgit2-glib/ggit.h>
+#include <ide.h>
 #include <locale.h>
 
 #include "gb-application.h"
@@ -47,8 +47,9 @@ main (int   argc,
   g_set_prgname (PACKAGE_TARNAME);
   g_set_application_name (_("Builder"));
 
+  ide_set_program_name ("gnome-builder");
+
   gb_log_init (TRUE, NULL);
-  ggit_init ();
 
   g_message ("Initializing with Gtk+ version %d.%d.%d.",
              gtk_get_major_version (),


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