The app-specific style-reading was wrong. Thanks to wabz for noticing.

Fri, 13 Jul 2007 01:27:31 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Fri, 13 Jul 2007 01:27:31 +0000
changeset 18761
80deaf013c2d
parent 18760
f0c3184a60d3
child 18762
1d4a091693f5

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

mercurial