From 8f19d6a8d2f34aeb4060d4374eb204b270ffbaa8 Mon Sep 17 00:00:00 2001 From: adnano Date: Fri, 3 May 2024 19:10:28 -0400 Subject: wmenu-run: Populate items from PATH --- menu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'menu.h') diff --git a/menu.h b/menu.h index 039cac7..724aa53 100644 --- a/menu.h +++ b/menu.h @@ -74,12 +74,12 @@ struct menu { }; struct menu *menu_create(); +void menu_destroy(struct menu *menu); void menu_getopts(struct menu *menu, int argc, char *argv[]); -void menu_add_item(struct menu *menu, char *text); +void menu_add_item(struct menu *menu, char *text, bool sort); void menu_render_items(struct menu *menu); void menu_paste(struct menu *menu, const char *text, ssize_t len); void menu_keypress(struct menu *menu, enum wl_keyboard_key_state key_state, xkb_keysym_t sym); -void menu_destroy(struct menu *menu); #endif -- cgit v1.2.3