aboutsummaryrefslogtreecommitdiffstats
path: root/nsxiv.h
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-06-01 12:47:17 +0200
committerN-R-K <nrk@disroot.org>2022-06-02 10:09:51 +0200
commite9a0096d6df602aefac5ce63b4bda2e1c85ed846 (patch)
treef49db09049324a1280c2aaf86d5a2de15471e22b /nsxiv.h
parent810a9651a362992383081619ca63122f41f1cd0a (diff)
downloadnsxiv-e9a0096d6df602aefac5ce63b4bda2e1c85ed846.tar.zst
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.h3
1 files changed, 1 insertions, 2 deletions
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);