[gnome-builder] ctags: lower the tags priorities



commit 789d72fba2e285a84574fe32d904d00c3883d929
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sun Jun 4 18:20:31 2017 +0200

    ctags: lower the tags priorities
    
    The ctags highlight tags should not overwrite
    the ones set by GtkSourceView.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756699

 libide/highlighting/ide-highlight-engine.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libide/highlighting/ide-highlight-engine.c b/libide/highlighting/ide-highlight-engine.c
index 1ea13d3..34f4182 100644
--- a/libide/highlighting/ide-highlight-engine.c
+++ b/libide/highlighting/ide-highlight-engine.c
@@ -228,6 +228,7 @@ create_tag_from_style (IdeHighlightEngine *self,
   g_assert (style_name != NULL);
 
   tag = gtk_text_buffer_create_tag (GTK_TEXT_BUFFER (self->buffer), style_name, NULL);
+  gtk_text_tag_set_priority (tag, 0);
   style_scheme = gtk_source_buffer_get_style_scheme (GTK_SOURCE_BUFFER (self->buffer));
   sync_tag_style (style_scheme, tag);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]