From eadf455c8c4d74a9b66a47ad97de274fb3d16241 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Wed, 20 Jan 2016 18:50:33 +0100 Subject: Let DMenu mode reuse open dialog and not restart it. handy for multi-select. --- include/rofi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/rofi.h') diff --git a/include/rofi.h b/include/rofi.h index c1824090..95fd06c6 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -52,7 +52,6 @@ typedef enum */ MenuState *menu ( Mode *sw, char *input, char *prompt, - unsigned int selected_line, const char *message, MenuFlags flags ) __attribute__ ( ( nonnull ( 1, 2, 3 ) ) ); @@ -92,5 +91,7 @@ void menu_state_itterrate ( MenuState *state, XEvent *event ); unsigned int menu_state_get_completed ( const MenuState *state ); const char * menu_state_get_user_input ( const MenuState *state ); void menu_state_free ( MenuState *state ); +void menu_state_restart ( MenuState *state ); +void menu_state_set_selected_line ( MenuState *state, unsigned int selected_line ); /*@}*/ #endif -- cgit v1.2.3