Fri, 13 Jul 2007 01:27:31 +0000
The app-specific style-reading was wrong. Thanks to wabz for noticing.
| finch/libgnt/gntstyle.c | file | annotate | diff | comparison | revisions |
--- a/finch/libgnt/gntstyle.c Fri Jul 13 00:37:06 2007 +0000 +++ b/finch/libgnt/gntstyle.c Fri Jul 13 01:27:31 2007 +0000 @@ -48,7 +48,11 @@ char *gnt_style_get_from_name(const char *group, const char *key) { #if GLIB_CHECK_VERSION(2,6,0) - if ((group == NULL && (group = g_get_prgname()) == NULL) || *group == '\0') + if (group == NULL && (group = g_get_prgname()) != NULL && *group != '\0') { + return g_key_file_get_value(gkfile, group, key, NULL); + } + + if (!group || !*group) group = "general"; return g_key_file_get_value(gkfile, group, key, NULL); #endif