diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-02-08 09:03:11 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-02-08 09:03:11 +0100 |
commit | 5a86ae5c99d988511e31d20f08839a47a2141cc5 (patch) | |
tree | d1866c7ba3bee0bc34afff4ef29818617311d3d3 /include | |
parent | ad932c8fd02a278813af7c7c578caaa4cd5e4f0d (diff) |
Cleanups
Diffstat (limited to 'include')
-rw-r--r-- | include/rofi.h | 13 | ||||
-rw-r--r-- | include/view.h | 8 |
2 files changed, 16 insertions, 5 deletions
diff --git a/include/rofi.h b/include/rofi.h index 4f74757d..75713df7 100644 --- a/include/rofi.h +++ b/include/rofi.h @@ -8,6 +8,7 @@ #include "timings.h" #include "keyb.h" #include "mode.h" +#include "view.h" /** * @defgroup Main Main @@ -19,12 +20,15 @@ extern const char *cache_dir; /** - * @param msg The error message to show. - * @param markup The error message uses pango markup. + * @param key the Key to match + * @param modstate the modifier state to match + * + * Match key and modifier state against modi. * - * The error message to show. + * @return the index of the switcher that matches the key combination + * specified by key and modstate. Returns -1 if none was found */ -void error_dialog ( const char *msg, int markup ); +int locate_switcher ( KeySym key, unsigned int modstate ); /** Reset terminal */ #define color_reset "\033[0m" @@ -54,6 +58,5 @@ int show_error_message ( const char *msg, int markup ); " * The version of rofi you are running\n\n" \ " <i>https://github.com/DaveDavenport/rofi/</i>" #define ERROR_MSG_MARKUP TRUE -int locate_switcher ( KeySym key, unsigned int modstate ); /*@}*/ #endif diff --git a/include/view.h b/include/view.h index 9c4eb125..329102e5 100644 --- a/include/view.h +++ b/include/view.h @@ -56,5 +56,13 @@ void rofi_view_update ( RofiViewState *state ); void rofi_view_setup_fake_transparency ( Display *display, RofiViewState *state ); void rofi_view_cleanup ( void ); + +/** + * @param msg The error message to show. + * @param markup The error message uses pango markup. + * + * The error message to show. + */ +void rofi_view_error_dialog ( const char *msg, int markup ); /** @} */ #endif |