Mercurial > pidgin.yaz
comparison console/libgnt/gntstyle.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 | 7573bd40a190 |
children | a0b1ab181316 |
comparison
equal
deleted
inserted
replaced
14209:2925098c9b95 | 14210:bb38f32ab6aa |
---|---|
39 | 39 |
40 bool_styles[style] = def; | 40 bool_styles[style] = def; |
41 return bool_styles[style]; | 41 return bool_styles[style]; |
42 } | 42 } |
43 | 43 |
44 #if GLIB_CHECK_VERSION(2,6,0) | |
44 static void | 45 static void |
45 read_general_style(GKeyFile *kfile) | 46 read_general_style(GKeyFile *kfile) |
46 { | 47 { |
47 GError *error = NULL; | 48 GError *error = NULL; |
48 gsize nkeys; | 49 gsize nkeys; |
68 str_styles[styles[i].en] = | 69 str_styles[styles[i].en] = |
69 g_key_file_get_string(kfile, "general", styles[i].style, &error); | 70 g_key_file_get_string(kfile, "general", styles[i].style, &error); |
70 } | 71 } |
71 } | 72 } |
72 } | 73 } |
74 #endif | |
73 | 75 |
74 void gnt_style_read_configure_file(const char *filename) | 76 void gnt_style_read_configure_file(const char *filename) |
75 { | 77 { |
76 #if GLIB_CHECK_VERSION(2,6,0) | 78 #if GLIB_CHECK_VERSION(2,6,0) |
77 GKeyFile *kfile = g_key_file_new(); | 79 GKeyFile *kfile = g_key_file_new(); |