summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-06-02 16:09:20 +0200
committerDave Davenport <qball@gmpclient.org>2017-06-02 16:09:20 +0200
commit48bf1709b6bcc316ad8019afc11d2cf8452817a0 (patch)
treec3b22e7a006df026f7bfab6411baf08e9898f766 /source/helper.c
parenteec5c6eadcc5de3c5285a5240db6da2e439d287a (diff)
Rename HL_ to ROFI_HL_ and fix box test.
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/helper.c b/source/helper.c
index e0a0563e..a299e612 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -411,37 +411,37 @@ PangoAttrList *helper_token_match_get_pango_attr ( ThemeHighlight th, GRegex **t
for ( int index = ( count > 1 ) ? 1 : 0; index < count; index++ ) {
int start, end;
g_match_info_fetch_pos ( gmi, index, &start, &end );
- if ( th.style & HL_BOLD ) {
+ if ( th.style & ROFI_HL_BOLD ) {
PangoAttribute *pa = pango_attr_weight_new ( PANGO_WEIGHT_BOLD );
pa->start_index = start;
pa->end_index = end;
pango_attr_list_insert ( retv, pa );
}
- if ( th.style & HL_UNDERLINE ) {
+ if ( th.style & ROFI_HL_UNDERLINE ) {
PangoAttribute *pa = pango_attr_underline_new ( PANGO_UNDERLINE_SINGLE );
pa->start_index = start;
pa->end_index = end;
pango_attr_list_insert ( retv, pa );
}
- if ( th.style & HL_STRIKETHROUGH ) {
+ if ( th.style & ROFI_HL_STRIKETHROUGH ) {
PangoAttribute *pa = pango_attr_strikethrough_new ( TRUE );
pa->start_index = start;
pa->end_index = end;
pango_attr_list_insert ( retv, pa );
}
- if ( th.style & HL_SMALL_CAPS ) {
+ if ( th.style & ROFI_HL_SMALL_CAPS ) {
PangoAttribute *pa = pango_attr_variant_new ( PANGO_VARIANT_SMALL_CAPS );
pa->start_index = start;
pa->end_index = end;
pango_attr_list_insert ( retv, pa );
}
- if ( th.style & HL_ITALIC ) {
+ if ( th.style & ROFI_HL_ITALIC ) {
PangoAttribute *pa = pango_attr_style_new ( PANGO_STYLE_ITALIC );
pa->start_index = start;
pa->end_index = end;
pango_attr_list_insert ( retv, pa );
}
- if ( th.style & HL_COLOR ) {
+ if ( th.style & ROFI_HL_COLOR ) {
PangoAttribute *pa = pango_attr_foreground_new (
th.color.red * 65535,
th.color.green * 65535,