diff options
author | Dave Davenport <DaveDavenport@users.noreply.github.com> | 2017-03-10 23:39:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-10 23:39:29 +0100 |
commit | cee753bd3cc2f96743e8771d0cd82beee32fcd2e (patch) | |
tree | 63d492fcd35830758e9009093d249878b69a20be /include/mode-private.h | |
parent | 25678d7a59ba7419a2d3b018971d5539124cf750 (diff) |
Zeltakmadness (#572)
* Allow modi to set extra pango attributes on displayed rows
* Fix some documentation, only highlight the mode name with color.
* Small rename.
Diffstat (limited to 'include/mode-private.h')
-rw-r--r-- | include/mode-private.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/mode-private.h b/include/mode-private.h index 04e0ea9d..633065f0 100644 --- a/include/mode-private.h +++ b/include/mode-private.h @@ -2,7 +2,7 @@ #define ROFI_MODE_PRIVATE_H #include <gmodule.h> -#define ABI_VERSION 0x00000003 +#define ABI_VERSION 0x00000004 /** * @param data Pointer to #Mode object. @@ -15,13 +15,14 @@ typedef void ( *_mode_free )( Mode *data ); * @param sw The #Mode pointer * @param selected_line The selected line * @param state The state to display [out] + * @param attribute_list List of extra (pango) attribute to apply when displaying. [out][null] * @param get_entry if it should only return the state * * Get the value for displaying. * * @return the string and state for displaying. */ -typedef char * ( *_mode_get_display_value )( const Mode *sw, unsigned int selected_line, int *state, int get_entry ); +typedef char * ( *_mode_get_display_value )( const Mode *sw, unsigned int selected_line, int *state, GList **attribute_list, int get_entry ); /** * @param sw The #Mode pointer |