diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-05-18 07:59:37 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-05-18 07:59:37 +0200 |
commit | 72afc7b0399834bc2b6c3a45f761b548f47b3cab (patch) | |
tree | ae1eb158807ee04553d359d948f7b0a060c09030 /source/helper.c | |
parent | bcea55c398c9f9a77aeb045d264c67fee3bfba09 (diff) |
Add strikethrough highlight method.
Diffstat (limited to 'source/helper.c')
-rw-r--r-- | source/helper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/helper.c b/source/helper.c index d31a4e20..e14a5e68 100644 --- a/source/helper.c +++ b/source/helper.c @@ -423,6 +423,12 @@ PangoAttrList *helper_token_match_get_pango_attr ( ThemeHighlight th, GRegex **t pa->end_index = end; pango_attr_list_insert ( retv, pa ); } + if ( th.style & 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_ITALIC ) { PangoAttribute *pa = pango_attr_style_new ( PANGO_STYLE_ITALIC ); pa->start_index = start; |