mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Fixed window specific themes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1575 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
75543048b5
commit
0db8e96019
3 changed files with 12 additions and 11 deletions
|
|
@ -430,10 +430,8 @@ char *format_get_text_theme(THEME_REC *theme, const char *module,
|
|||
va_list va;
|
||||
char *str;
|
||||
|
||||
if (theme == NULL) {
|
||||
theme = dest->window->theme == NULL ? current_theme :
|
||||
dest->window->theme;
|
||||
}
|
||||
if (theme == NULL)
|
||||
theme = window_get_theme(dest->window);
|
||||
|
||||
va_start(va, formatnum);
|
||||
str = format_get_text_theme_args(theme, module, dest, formatnum, va);
|
||||
|
|
@ -484,8 +482,7 @@ char *format_get_text(const char *module, WINDOW_REC *window,
|
|||
char *str;
|
||||
|
||||
format_create_dest(&dest, server, target, 0, window);
|
||||
theme = dest.window->theme == NULL ? current_theme :
|
||||
dest.window->theme;
|
||||
theme = window_get_theme(dest.window);
|
||||
|
||||
va_start(va, formatnum);
|
||||
str = format_get_text_theme_args(theme, module, &dest, formatnum, va);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue