From e9a0096d6df602aefac5ce63b4bda2e1c85ed846 Mon Sep 17 00:00:00 2001 From: NRK Date: Wed, 1 Jun 2022 16:47:17 +0600 Subject: code-style: simplify window title related code instead of dancing around with some `init` parameter, directly give `win_set_title()` what it needs. `get_win_title()` now also does *just* what the name says. this simplifies things quite a bit and the functions now do what their name implies more closely instead of doing some `init` dance internally. --- nsxiv.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nsxiv.h') diff --git a/nsxiv.h b/nsxiv.h index c781aa5..38e1d7b 100644 --- a/nsxiv.h +++ b/nsxiv.h @@ -438,7 +438,7 @@ void win_toggle_bar(win_t*); void win_clear(win_t*); void win_draw(win_t*); void win_draw_rect(win_t*, int, int, int, int, bool, int, unsigned long); -void win_set_title(win_t*, bool); +void win_set_title(win_t*, const char*, size_t); void win_set_cursor(win_t*, cursor_t); void win_cursor_pos(win_t*, int*, int*); @@ -454,7 +454,6 @@ void clear_resize(void); void remove_file(int, bool); void set_timeout(timeout_f, int, bool); void reset_timeout(timeout_f); -size_t get_win_title(unsigned char*, int, bool); void close_info(void); void open_info(void); void load_image(int); -- cgit v1.2.3-54-g00ecf