Commit 28b61b0d authored by Johannes Schmid's avatar Johannes Schmid Committed by Johannes Schmid

Bring back gnome_program_init(). It's needed until all gnome widgets are

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

svn path=/trunk/; revision=4917
parent 042c4afb
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
2009-04-02 Johannes Schmid <jhs@gnome.org> 2009-04-02 Johannes Schmid <jhs@gnome.org>
* plugins/file-manager/file-model.c (file_model_add_dummy), * plugins/file-manager/file-model.c (file_model_add_dummy),
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
#include <libanjuta/anjuta-debug.h> #include <libanjuta/anjuta-debug.h>
#include <libanjuta/interfaces/ianjuta-file-loader.h> #include <libanjuta/interfaces/ianjuta-file-loader.h>
#include <gnome.h>
#include "anjuta.h" #include "anjuta.h"
#ifdef ENABLE_NLS #ifdef ENABLE_NLS
...@@ -164,8 +166,15 @@ main (int argc, char *argv[]) ...@@ -164,8 +166,15 @@ main (int argc, char *argv[])
g_option_context_add_main_entries (context, anjuta_options, NULL); g_option_context_add_main_entries (context, anjuta_options, NULL);
#endif #endif
g_option_context_add_group (context, gtk_get_option_group (TRUE)); /* gnome_program_init() does this for us - enable when it's removed */
gtk_init (&argc, &argv); /* 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 */ /* Initialize threads, if possible */
#ifdef G_THREADS_ENABLED #ifdef G_THREADS_ENABLED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment