1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

fallback to sb_background in theme if no other statusbar background settings

were found.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1827 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-14 09:54:52 +00:00 committed by cras
parent 3e3f9ac223
commit b716b29cb7

View File

@ -426,6 +426,12 @@ STATUSBAR_REC *statusbar_create(STATUSBAR_GROUP_REC *group,
name = g_strdup_printf("{sb_%s_bg}", group->name);
value = theme_format_expand(theme, name);
g_free(name);
if (*value == '\0') {
/* fallback to default statusbar background
(also provides backwards compatibility..) */
value = theme_format_expand(theme, "{sb_background}");
}
}
if (*value == '\0') {