diff options
author | NRK <nrk@disroot.org> | 2022-06-01 16:47:17 +0600 |
---|---|---|
committer | N-R-K <nrk@disroot.org> | 2022-06-02 08:09:51 +0000 |
commit | e9a0096d6df602aefac5ce63b4bda2e1c85ed846 (patch) | |
tree | f49db09049324a1280c2aaf86d5a2de15471e22b /nsxiv.h | |
parent | 810a9651a362992383081619ca63122f41f1cd0a (diff) |
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.
Diffstat (limited to 'nsxiv.h')
-rw-r--r-- | nsxiv.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |