mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -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:
parent
3e3f9ac223
commit
b716b29cb7
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user