Mercurial > audlegacy
diff libaudacious/configdb_gconf.c @ 1449:a69db3a15bf2 trunk
[svn] - experimental change to bmp_cfg_db_open() to ensure that g_type_init()
has been called
author | nenolod |
---|---|
date | Fri, 28 Jul 2006 10:56:44 -0700 |
parents | 7610ab1233a7 |
children | f12d7e208b43 |
line wrap: on
line diff
--- a/libaudacious/configdb_gconf.c Fri Jul 28 07:21:20 2006 -0700 +++ b/libaudacious/configdb_gconf.c Fri Jul 28 10:56:44 2006 -0700 @@ -18,20 +18,19 @@ #include <string.h> #include <gconf/gconf-client.h> - #define BMP_CONFIG_BASE_PATH "/apps/audacious" - struct _ConfigDb { GConfClient *client; }; - ConfigDb * bmp_cfg_db_open() { ConfigDb *db; + g_type_init(); + db = g_new(ConfigDb, 1); db->client = gconf_client_get_default();