diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-08 16:09:24 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-08 16:09:24 +0100 |
commit | c57e7348d2e34c7eb27fafa73b40602725ea315a (patch) | |
tree | 3db8e06a1a46941fcd94244db658d35a73768e5a /include | |
parent | 6318e5024b155d5b7383d9352ba56e464f91b3b7 (diff) |
Add some better error message. Allow -theme-str option to override part of theme
Diffstat (limited to 'include')
-rw-r--r-- | include/helper.h | 8 | ||||
-rw-r--r-- | include/theme.h | 13 |
2 files changed, 20 insertions, 1 deletions
diff --git a/include/helper.h b/include/helper.h index ebb8355e..af93aece 100644 --- a/include/helper.h +++ b/include/helper.h @@ -85,6 +85,14 @@ int find_arg_str ( const char * const key, char** val ); /** * @param key The key to search for * + * Parse all command line options 'key' to string vector. + * + * @returns str vector. user should free array. + */ +const char ** find_arg_strv ( const char *const key ); +/** + * @param key The key to search for + * * Check if key is passed as argument. * * @returns return position of string or -1 if not found. diff --git a/include/theme.h b/include/theme.h index fd318760..1964467a 100644 --- a/include/theme.h +++ b/include/theme.h @@ -169,8 +169,19 @@ void rofi_theme_free ( ThemeWidget *wid ); * @param file filename to parse. * * Parse the input theme file. + * + * @returns returns TRUE when error. + */ +gboolean rofi_theme_parse_file ( const char *file ); + +/** + * @param string to parse. + * + * Parse the input string in addition to theme file. + * + * @returns returns TRUE when error. */ -void rofi_theme_parse_file ( const char *file ); +gboolean rofi_theme_parse_string ( const char *file ); /** * @param widget The widget handle. |