summaryrefslogtreecommitdiffstats
path: root/include/rofi.h
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-02-08 09:03:11 +0100
committerDave Davenport <qball@gmpclient.org>2016-02-08 09:03:11 +0100
commit5a86ae5c99d988511e31d20f08839a47a2141cc5 (patch)
treed1866c7ba3bee0bc34afff4ef29818617311d3d3 /include/rofi.h
parentad932c8fd02a278813af7c7c578caaa4cd5e4f0d (diff)
Cleanups
Diffstat (limited to 'include/rofi.h')
-rw-r--r--include/rofi.h13
1 files changed, 8 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