comparison finch/libgnt/gntstyle.c @ 18540:612bc00efe20

Typo fix. This bit of code must be cursed.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 15 Jul 2007 11:59:48 +0000
parents fbca9cd907a1
children dcb1d1af30a1
comparison
equal deleted inserted replaced
18539:1148da95ddeb 18540:612bc00efe20
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 const char *prg = g_get_prgname(); 51 const char *prg = g_get_prgname();
52 if ((group == NULL || *group != '\0') && prg && 52 if ((group == NULL || *group == '\0') && prg &&
53 g_key_file_has_group(gkfile, prg)) 53 g_key_file_has_group(gkfile, prg))
54 group = prg; 54 group = prg;
55 if (!group) 55 if (!group)
56 group = "general"; 56 group = "general";
57 return g_key_file_get_value(gkfile, group, key, NULL); 57 return g_key_file_get_value(gkfile, group, key, NULL);