summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-14 09:54:52 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-14 09:54:52 +0000
commitb716b29cb7743d83e7cb7c7b20003e1d2a8145be (patch)
treee02e1459f6d91b4b97d72d0675ee9930cc0b6c12 /src/fe-text
parent3e3f9ac2235e7afd562f7a7007e1f626686b8802 (diff)
downloadirssi-b716b29cb7743d83e7cb7c7b20003e1d2a8145be.zip
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
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/statusbar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c
index 8f12e3e4..3b4b1eeb 100644
--- a/src/fe-text/statusbar.c
+++ b/src/fe-text/statusbar.c
@@ -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') {