From 1d622aa59c7e80cdfa71c24331dc2255b66960f4 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Fri, 2 Jun 2017 16:46:28 +0200 Subject: Change ThemeHighlight to RofiHighlightColorStyle --- source/helper.c | 2 +- source/theme.c | 2 +- source/view.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/helper.c b/source/helper.c index a299e612..b1220fbd 100644 --- a/source/helper.c +++ b/source/helper.c @@ -399,7 +399,7 @@ int find_arg_char ( const char * const key, char *val ) return FALSE; } -PangoAttrList *helper_token_match_get_pango_attr ( ThemeHighlight th, GRegex **tokens, const char *input, PangoAttrList *retv ) +PangoAttrList *helper_token_match_get_pango_attr ( RofiHighlightColorStyle th, GRegex **tokens, const char *input, PangoAttrList *retv ) { // Do a tokenized match. if ( tokens ) { diff --git a/source/theme.c b/source/theme.c index 6d620faa..f4f41003 100644 --- a/source/theme.c +++ b/source/theme.c @@ -626,7 +626,7 @@ GList *rofi_theme_get_list ( const widget *widget, const char * property, const return NULL; } -ThemeHighlight rofi_theme_get_highlight ( widget *widget, const char *property, ThemeHighlight th ) +RofiHighlightColorStyle rofi_theme_get_highlight ( widget *widget, const char *property, RofiHighlightColorStyle th ) { ThemeWidget *wid = rofi_theme_find_widget ( widget->name, widget->state, FALSE ); Property *p = rofi_theme_find_property ( wid, P_HIGHLIGHT, property, FALSE ); diff --git a/source/view.c b/source/view.c index 72a98dcb..2b036481 100644 --- a/source/view.c +++ b/source/view.c @@ -911,7 +911,7 @@ static void update_callback ( textbox *t, unsigned int index, void *udata, TextB textbox_icon ( t, icon ); if ( state->tokens && config.show_match ) { - ThemeHighlight th = { ROFI_HL_BOLD | ROFI_HL_UNDERLINE, { 0.0, 0.0, 0.0, 0.0 } }; + RofiHighlightColorStyle th = { ROFI_HL_BOLD | ROFI_HL_UNDERLINE, { 0.0, 0.0, 0.0, 0.0 } }; th = rofi_theme_get_highlight ( WIDGET ( t ), "highlight", th ); helper_token_match_get_pango_attr ( th, state->tokens, textbox_get_visible_text ( t ), list ); } -- cgit v1.2.3