about summary refs log tree commit diff stats
path: root/src/ui/titlebar.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-16 19:03:14 +0000
committerJames Booth <boothj5@gmail.com>2014-01-16 19:03:14 +0000
commit4792ac8df67b95a8db09f982ecc898a36f06d773 (patch)
tree9f3e0f531bc2a6caaf49ea183ae502d7179d1d5f /src/ui/titlebar.c
parent7c7af7b25f993a3f50a6539a82a45f3b5885cc9e (diff)
downloadprofani-tty-4792ac8df67b95a8db09f982ecc898a36f06d773.tar.gz
Use title_bar_draw where possible in title bar
Diffstat (limited to 'src/ui/titlebar.c')
-rw-r--r--src/ui/titlebar.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c
index 68ca623d..052c6a6b 100644
--- a/src/ui/titlebar.c
+++ b/src/ui/titlebar.c
@@ -62,11 +62,7 @@ _title_bar_console(void)
         free(current_title);
     current_title = strdup("Profanity. Type /help for help information.");
 
-    werase(win);
-    _title_bar_draw_title();
-    _title_bar_draw_presence();
-    wrefresh(win);
-    inp_put_back();
+    title_bar_draw();
 }
 
 static void
@@ -77,11 +73,7 @@ _title_bar_resize(void)
     wresize(win, 1, cols);
     wbkgd(win, COLOUR_TITLE_TEXT);
 
-    werase(win);
-    _title_bar_draw_title();
-    _title_bar_draw_presence();
-    wrefresh(win);
-    inp_put_back();
+    title_bar_draw();
 }
 
 static void
@@ -118,11 +110,7 @@ _title_bar_set_presence(contact_presence_t presence)
 {
     current_presence = presence;
 
-    werase(win);
-    _title_bar_draw_title();
-    _title_bar_draw_presence();
-    wrefresh(win);
-    inp_put_back();
+    title_bar_draw();
 }
 
 static void