about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-04-29 23:16:43 +0100
committerJames Booth <boothj5@gmail.com>2015-04-29 23:16:43 +0100
commitd5188a160e23235e84dcc4e4c8ee584dba4fab77 (patch)
tree39407a0e67c4c8898adfab1be0369f4e175591a2 /src/ui
parent0fece78dfe94df5fc00032b26d13d1607cb8d031 (diff)
parent2e75e5446060f64759dcc73c2f0a4967024f1627 (diff)
downloadprofani-tty-d5188a160e23235e84dcc4e4c8ee584dba4fab77.tar.gz
Merge branch 'master' into pgp
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/core.c6
-rw-r--r--src/ui/ui.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 40f9dbbf..b985e52b 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -1297,6 +1297,12 @@ ui_current_print_formatted_line(const char show_char, int attrs, const char * co
 }
 
 void
+ui_win_error_line(ProfWin *window, const char * const msg)
+{
+    win_print(window, '-', NULL, 0, THEME_ERROR, "", msg);
+}
+
+void
 ui_current_error_line(const char * const msg)
 {
     ProfWin *current = wins_get_current();
diff --git a/src/ui/ui.h b/src/ui/ui.h
index 11457988..e98a105e 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -106,6 +106,7 @@ ProfChatWin *ui_get_current_chat(void);
 void ui_current_print_line(const char * const msg, ...);
 void ui_current_print_formatted_line(const char show_char, int attrs, const char * const msg, ...);
 void ui_current_error_line(const char * const msg);
+void ui_win_error_line(ProfWin *window, const char * const msg);
 
 win_type_t ui_win_type(int index);
 void ui_close_win(int index);