[gconf] gsettings-data-convert: Call g_type_init()
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gconf] gsettings-data-convert: Call g_type_init()
- Date: Mon, 18 Jul 2011 08:00:06 +0000 (UTC)
commit 8370e61af4e22e045b39a9413ce5f804cd585a87
Author: Martin Pitt <martin pitt ubuntu com>
Date: Mon Jul 18 09:56:56 2011 +0200
gsettings-data-convert: Call g_type_init()
Adhere our own advice in gconf_client_get_default() and call g_type_init() at
program start. Otherwise we get a "You forgot to call g_type_init()" critical
at startup and a crash in gconf_client_get_default().
Bug-Ubuntu: https://launchpad.net/bugs/810795
gsettings/gsettings-data-convert.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gsettings/gsettings-data-convert.c b/gsettings/gsettings-data-convert.c
index adcccf2..3c52bc2 100644
--- a/gsettings/gsettings-data-convert.c
+++ b/gsettings/gsettings-data-convert.c
@@ -415,6 +415,8 @@ main (int argc, char *argv[])
{ NULL }
};
+ g_type_init();
+
context = g_option_context_new ("");
g_option_context_set_summary (context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]