[anjal] Initialize GTK before calling gconf_client_get_default()
- From: Yan Li <yanli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjal] Initialize GTK before calling gconf_client_get_default()
- Date: Thu, 21 Jan 2010 09:14:50 +0000 (UTC)
commit f3a6e830cc8c37e056c25925a09234c13ecda1a1
Author: Yan Li <yanli infradead org>
Date: Thu Jan 21 16:26:54 2010 +0800
Initialize GTK before calling gconf_client_get_default()
src/main.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 984dd41..b9ac338 100644
--- a/src/main.c
+++ b/src/main.c
@@ -256,7 +256,7 @@ main (int argc, char *argv[])
{
GError *error = NULL;
EShell *default_shell;
- GConfClient *client = gconf_client_get_default();
+ GConfClient *client;
#ifdef G_OS_WIN32
extern void link_shutdown (void);
@@ -294,6 +294,8 @@ main (int argc, char *argv[])
g_error_free(error);
}
#endif
+ client = gconf_client_get_default();
+
if (!g_thread_get_initialized ())
g_thread_init (NULL);
dbus_g_thread_init ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]