From 5a86ae5c99d988511e31d20f08839a47a2141cc5 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 8 Feb 2016 09:03:11 +0100 Subject: Cleanups --- include/rofi.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'include/rofi.h') 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" \ " https://github.com/DaveDavenport/rofi/" #define ERROR_MSG_MARKUP TRUE -int locate_switcher ( KeySym key, unsigned int modstate ); /*@}*/ #endif -- cgit v1.2.3