Mercurial > pidgin
comparison finch/libgnt/gntstyle.c @ 18509:c96a0d4a84e2
The app-specific style-reading was wrong. Thanks to wabz for noticing.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 13 Jul 2007 01:27:31 +0000 |
parents | 9f029b7208f1 |
children | fbca9cd907a1 |
comparison
equal
deleted
inserted
replaced
18508:902685705e4e | 18509:c96a0d4a84e2 |
---|---|
46 } | 46 } |
47 | 47 |
48 char *gnt_style_get_from_name(const char *group, const char *key) | 48 char *gnt_style_get_from_name(const char *group, const char *key) |
49 { | 49 { |
50 #if GLIB_CHECK_VERSION(2,6,0) | 50 #if GLIB_CHECK_VERSION(2,6,0) |
51 if ((group == NULL && (group = g_get_prgname()) == NULL) || *group == '\0') | 51 if (group == NULL && (group = g_get_prgname()) != NULL && *group != '\0') { |
52 return g_key_file_get_value(gkfile, group, key, NULL); | |
53 } | |
54 | |
55 if (!group || !*group) | |
52 group = "general"; | 56 group = "general"; |
53 return g_key_file_get_value(gkfile, group, key, NULL); | 57 return g_key_file_get_value(gkfile, group, key, NULL); |
54 #endif | 58 #endif |
55 } | 59 } |
56 | 60 |