summaryrefslogtreecommitdiffstats
path: root/include/rofi.h
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-01-08 09:16:59 +0100
committerDave Davenport <qball@gmpclient.org>2016-01-08 09:16:59 +0100
commitdc8fb4f20256bbfb50b683f56886bc31b5a5187f (patch)
tree2b1d5fd9e4124874c923c9e2847dc8fdac74c785 /include/rofi.h
parent20b2d658a06f158c526f85f621e460fb2570a49b (diff)
Start making SardemFF happy. Use g_return_if_fail
Diffstat (limited to 'include/rofi.h')
-rw-r--r--include/rofi.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/rofi.h b/include/rofi.h
index e93eb635..424f483e 100644
--- a/include/rofi.h
+++ b/include/rofi.h
@@ -69,5 +69,15 @@ __attribute__ ( ( nonnull ( 1, 2, 3, 4 ) ) );
* @returns EXIT_FAILURE if failed to create dialog, EXIT_SUCCESS if succesfull
*/
int show_error_message ( const char *msg, int markup );
+
+#define ERROR_MSG( a ) a "\n" \
+ "If you suspect this is caused by a bug in rofi,\n" \
+ "please report the following information to rofi's github page:\n" \
+ " * The generated commandline output when the error occored.\n" \
+ " * Output of -dump-xresource\n" \
+ " * Steps to reproduce\n" \
+ " * The version of rofi you are running\n\n" \
+ " <i>https://github.com/DaveDavenport/rofi/</i>"
+#define ERROR_MSG_MARKUP TRUE
/*@}*/
#endif