Mercurial > pidgin.yaz
comparison console/libgnt/gntcolors.c @ 14210:bb38f32ab6aa
[gaim-migrate @ 16888]
GKeyFile is in glib-2.6 and above.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 19 Aug 2006 17:11:39 +0000 |
parents | 06f75fb84a78 |
children | e7de1f6d9f35 |
comparison
equal
deleted
inserted
replaced
14209:2925098c9b95 | 14210:bb38f32ab6aa |
---|---|
104 else | 104 else |
105 color = -1; | 105 color = -1; |
106 return color; | 106 return color; |
107 } | 107 } |
108 | 108 |
109 #if GLIB_CHECK_VERSION(2,6,0) | |
109 void gnt_colors_parse(GKeyFile *kfile) | 110 void gnt_colors_parse(GKeyFile *kfile) |
110 { | 111 { |
111 GError *error = NULL; | 112 GError *error = NULL; |
112 gsize nkeys; | 113 gsize nkeys; |
113 char **keys = g_key_file_get_keys(kfile, "colors", &nkeys, &error); | 114 char **keys = g_key_file_get_keys(kfile, "colors", &nkeys, &error); |
200 } | 201 } |
201 | 202 |
202 g_strfreev(keys); | 203 g_strfreev(keys); |
203 } | 204 } |
204 | 205 |
206 #endif /* GKeyFile */ |