diff options
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index 0debb1f..e8ddbe0 100644 --- a/src/state.c +++ b/src/state.c @@ -21,6 +21,11 @@ void state_add_button(State *state, Button *btn) state->btns = g_list_append(state->btns, btn); } +void state_remove_button(State *state, Button *btn) +{ + state->btns = g_list_remove(state->btns, btn); +} + static gboolean redraw_and_layout(gpointer data) { State *state = data; |
