From f8b372787562aecb2a4a55b336c196f47b5c1b0c Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 11 Feb 2024 00:21:05 +0100 Subject: Use updated text in draw There is a caveat: The text should always have the same size and layout as the original one for which the pango layout was calculated --- src/state.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/state.h') diff --git a/src/state.h b/src/state.h index 5814415..1dedd8e 100644 --- a/src/state.h +++ b/src/state.h @@ -20,6 +20,8 @@ State *state_create(Window *win, Drawable *draw); void state_add_button(State *state, Button *btn); +void state_remove_button(State *state, Button *btn); + void state_redraw(State *state, bool changed_layout); void state_destroy(State *state); -- cgit v1.2.3