[gnome-builder] minimap: don't obscure changes gutter renderer with overlay box



commit c7a30b092018b4dcecab294599f4367eba68ed2f
Author: Christian Hergert <christian hergert me>
Date:   Fri Apr 24 23:49:42 2015 -0700

    minimap: don't obscure changes gutter renderer with overlay box

 libide/ide-source-map.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-source-map.c b/libide/ide-source-map.c
index 73c3e05..ccde3da 100644
--- a/libide/ide-source-map.c
+++ b/libide/ide-source-map.c
@@ -460,8 +460,9 @@ ide_source_map_get_child_position (GtkOverlay   *overlay,
 
   gtk_widget_get_allocation (GTK_WIDGET (overlay), &our_alloc);
 
-  alloc->x = 0;
-  alloc->width = our_alloc.width;
+  /* adjust box to not cover line changes */
+  alloc->x = 3;
+  alloc->width = our_alloc.width - alloc->x;
 
   gtk_widget_get_preferred_height (child, NULL, &alloc->height);
 


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