anjuta r4917 - in trunk: . src



Author: jhs
Date: Thu Apr  2 11:20:30 2009
New Revision: 4917
URL: http://svn.gnome.org/viewvc/anjuta?rev=4917&view=rev

Log:
2009-04-02  Johannes Schmid  <jhs gnome org>

	* src/main.c (main):
	Bring back gnome_program_init(). It's needed until all gnome widgets are gone

Modified:
   trunk/ChangeLog
   trunk/src/main.c

Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c	(original)
+++ trunk/src/main.c	Thu Apr  2 11:20:30 2009
@@ -35,6 +35,8 @@
 #include <libanjuta/anjuta-debug.h>
 #include <libanjuta/interfaces/ianjuta-file-loader.h>
 
+#include <gnome.h>
+
 #include "anjuta.h"
 
 #ifdef ENABLE_NLS
@@ -164,8 +166,15 @@
 	g_option_context_add_main_entries (context, anjuta_options, NULL);
 #endif
 	
-	g_option_context_add_group (context, gtk_get_option_group (TRUE));
-	gtk_init (&argc, &argv);
+	/* gnome_program_init() does this for us - enable when it's removed */
+	/* g_option_context_add_group (context, gtk_get_option_group (TRUE));*/
+	/* Init Gnome - remove once we get rid of libgnome */
+	gnome_program_init (PACKAGE, VERSION,
+	                    LIBGNOMEUI_MODULE, argc, argv,
+	                    GNOME_PARAM_GOPTION_CONTEXT, context,
+	                    GNOME_PARAM_HUMAN_READABLE_NAME,
+	                    _("Integrated Development Environment"),
+	                    GNOME_PARAM_NONE);
 	
     /* Initialize threads, if possible */
 #ifdef G_THREADS_ENABLED    



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