Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
1448:3b1c464cbbb0 | 1449:a69db3a15bf2 |
---|---|
16 #include "configdb.h" | 16 #include "configdb.h" |
17 | 17 |
18 #include <string.h> | 18 #include <string.h> |
19 #include <gconf/gconf-client.h> | 19 #include <gconf/gconf-client.h> |
20 | 20 |
21 | |
22 #define BMP_CONFIG_BASE_PATH "/apps/audacious" | 21 #define BMP_CONFIG_BASE_PATH "/apps/audacious" |
23 | |
24 | 22 |
25 struct _ConfigDb { | 23 struct _ConfigDb { |
26 GConfClient *client; | 24 GConfClient *client; |
27 }; | 25 }; |
28 | 26 |
29 | |
30 ConfigDb * | 27 ConfigDb * |
31 bmp_cfg_db_open() | 28 bmp_cfg_db_open() |
32 { | 29 { |
33 ConfigDb *db; | 30 ConfigDb *db; |
31 | |
32 g_type_init(); | |
34 | 33 |
35 db = g_new(ConfigDb, 1); | 34 db = g_new(ConfigDb, 1); |
36 | 35 |
37 db->client = gconf_client_get_default(); | 36 db->client = gconf_client_get_default(); |
38 | 37 |