summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-bar-window.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-09-23 13:07:45 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-09-23 13:07:45 +0200
commit92019c300c0c56b26ee4eab2b6bb6a71e62a9ef5 (patch)
tree5f353ec59400fdff8d93be84e076bd8160c73226 /src/gui/curses/gui-curses-bar-window.c
parent81a229f77f9fd88411cb494cd1ca93f8a3fb3bef (diff)
downloadweechat-92019c300c0c56b26ee4eab2b6bb6a71e62a9ef5.zip
core: replace some calls to ncurses *printw functions by *addstr
Diffstat (limited to 'src/gui/curses/gui-curses-bar-window.c')
-rw-r--r--src/gui/curses/gui-curses-bar-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c
index 9176e8c8b..2836c15d3 100644
--- a/src/gui/curses/gui-curses-bar-window.c
+++ b/src/gui/curses/gui-curses-bar-window.c
@@ -361,7 +361,7 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window,
output = string_iconv_from_internal (NULL, utf_char);
if (low_char)
wattron (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, A_REVERSE);
- wprintw (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, "%s",
+ waddstr (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
(output) ? output : utf_char);
if (low_char)
wattroff (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar, A_REVERSE);
@@ -683,7 +683,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window,
gui_window_set_custom_color_fg_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
CONFIG_COLOR(config_color_bar_more),
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
- mvwprintw (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
+ mvwaddstr (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
y, x, ptr_string);
}
}
@@ -702,7 +702,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window,
gui_window_set_custom_color_fg_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
CONFIG_COLOR(config_color_bar_more),
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
- mvwprintw (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
+ mvwaddstr (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
y, x, ptr_string);
}
}