[gnome-builder] ide-buffer: set a fallback for TAG_SNIPPET_TAB_STOP
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] ide-buffer: set a fallback for TAG_SNIPPET_TAB_STOP
- Date: Tue, 25 Oct 2016 14:29:05 +0000 (UTC)
commit a21be2203214f9ce4066886ddcfcdac322004ec0
Author: Sebastien Lafargue <slafargue gnome org>
Date: Tue Oct 25 16:26:59 2016 +0200
ide-buffer: set a fallback for TAG_SNIPPET_TAB_STOP
If we don't have "snippet::tab-stop" in
the style scheme, we use PANGO_UNDERLINE_SINGLE instead
libide/buffers/ide-buffer.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/libide/buffers/ide-buffer.c b/libide/buffers/ide-buffer.c
index 9fd356f..85b664a 100644
--- a/libide/buffers/ide-buffer.c
+++ b/libide/buffers/ide-buffer.c
@@ -1071,9 +1071,12 @@ ide_buffer_notify_style_scheme (IdeBuffer *self,
"underline-rgba", &warning_rgba,
NULL);
- ide_source_style_scheme_apply_style (style_scheme,
- TAG_SNIPPET_TAB_STOP,
- GET_TAG (TAG_SNIPPET_TAB_STOP));
+ if (!ide_source_style_scheme_apply_style (style_scheme,
+ TAG_SNIPPET_TAB_STOP,
+ GET_TAG (TAG_SNIPPET_TAB_STOP)))
+ apply_style (GET_TAG (TAG_SNIPPET_TAB_STOP),
+ "underline", PANGO_UNDERLINE_SINGLE,
+ NULL);
if (!ide_source_style_scheme_apply_style (style_scheme,
TAG_DEFINITION,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]