diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-12-12 08:52:27 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-12-12 08:52:27 +0100 |
commit | 47125daecfc9f65c5dca19c798728d2f6f8bac8a (patch) | |
tree | a6fce922c5ddd329725eeee6c224e16ffcc212fa /include | |
parent | 18793612505ebc38da0116176746bff569d52257 (diff) |
Reset user input on script selection.
Fixes: #513
Diffstat (limited to 'include')
-rw-r--r-- | include/mode.h | 4 | ||||
-rw-r--r-- | include/view.h | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/include/mode.h b/include/mode.h index 59930a60..b8ee36c4 100644 --- a/include/mode.h +++ b/include/mode.h @@ -26,7 +26,9 @@ typedef enum /** Reload current DIALOG */ RELOAD_DIALOG = 1002, /** Previous dialog */ - PREVIOUS_DIALOG = 1003 + PREVIOUS_DIALOG = 1003, + /** Reloads the dialog and unset user input */ + RESET_DIALOG = 1004, } ModeMode; /** diff --git a/include/view.h b/include/view.h index 1a6a00fa..6e30ed8a 100644 --- a/include/view.h +++ b/include/view.h @@ -216,6 +216,13 @@ void rofi_view_switch_mode ( RofiViewState *state, Mode *mode ); void rofi_view_set_overlay ( RofiViewState *state, const char *text ); /** + * @param state The handle to the view. + * + * Clears the user entry box, set selected to 0. + */ +void rofi_view_clear_input ( RofiViewState *state ); + +/** * @param menu_flags The state of the new window. * * Creates the internal 'Cached' window that gets reused between views. @@ -247,6 +254,5 @@ void rofi_view_workers_finalize ( void ); * @returns the xcb_window_t for rofi's view or XCB_WINDOW_NONE. */ xcb_window_t rofi_view_get_window ( void ); - /**@}*/ #endif |