From 011908e1ffda06d09c9f163867cb6a7d68fd6c20 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sun, 13 Sep 2020 21:56:25 +0200 Subject: issue 1187: If error on launching application, show error message and return to list` (#1193) * Show error message, then possibly pop back to main window. Fix drun/run dialog to use this for command execution. Issue #1187 * [Combi] When no line selected, handle using the first entry. * [Window] Add execute on invalid input to window dialog. * Update view.h doxygen docu * Update manpage with running application changes. --- include/view.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/view.h b/include/view.h index f5deac96..a91d0e3d 100644 --- a/include/view.h +++ b/include/view.h @@ -187,13 +187,23 @@ void rofi_view_free ( RofiViewState *state ); RofiViewState * rofi_view_get_active ( void ); /** - * @param state the new active view handle, NULL to clear. + * @param state the new active view handle. * - * Set the current active view Handle. + * Set the current active view Handle, If NULL passed a queued view is popped + * from stack. * */ + void rofi_view_set_active ( RofiViewState *state ); +/** + * @param state remove view handle. + * + * remove state handle from queue, if current view, pop view from + * stack. + * + */ +void rofi_view_remove_active ( RofiViewState *state ); /** * @param msg The error message to show. * @param markup The error message uses pango markup. @@ -265,6 +275,7 @@ void rofi_view_clear_input ( RofiViewState *state ); * TODO: Internal call to view exposed. */ void __create_window ( MenuFlags menu_flags ); + /** * Get the handle of the main window. * -- cgit v1.2.3