[gnome-builder] source-view: draw snippet background using BELOW_TEXT



commit d63e031e2d9284ec312cc912f0f0ac4455b12e4a
Author: Christian Hergert <christian hergert me>
Date:   Fri Mar 4 13:48:06 2016 -0800

    source-view: draw snippet background using BELOW_TEXT
    
    We should have been using BELOW_TEXT here rather than BELOW. This fixes
    the situation where the background was drawn underneath the grid.

 libide/ide-source-view.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-source-view.c b/libide/ide-source-view.c
index af1d05d..b37379a 100644
--- a/libide/ide-source-view.c
+++ b/libide/ide-source-view.c
@@ -4425,12 +4425,13 @@ ide_source_view_real_draw_layer (GtkTextView      *text_view,
 
   GTK_TEXT_VIEW_CLASS (ide_source_view_parent_class)->draw_layer (text_view, layer, cr);
 
-  if (layer == GTK_TEXT_VIEW_LAYER_BELOW)
+  if (layer == GTK_TEXT_VIEW_LAYER_BELOW_TEXT)
     {
       if (priv->snippets->length)
         ide_source_view_draw_snippets_background (self, cr);
     }
-  else if (layer == GTK_TEXT_VIEW_LAYER_ABOVE)
+
+  if (layer == GTK_TEXT_VIEW_LAYER_ABOVE_TEXT)
     {
       if (priv->show_search_bubbles)
         {


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