[gedit-code-assistance] Keep a ref to scrollbar



commit d50d9f77c1bdccbafcf4f6f03073eb7fc1ee043e
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Feb 17 15:23:56 2014 +0100

    Keep a ref to scrollbar
    
    If we do not keep a ref the scrollbar might be destroyed
    when we try to disconnect the draw signal

 src/gca-scrollbar-marker.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gca-scrollbar-marker.vala b/src/gca-scrollbar-marker.vala
index 85137e6..25d8b16 100644
--- a/src/gca-scrollbar-marker.vala
+++ b/src/gca-scrollbar-marker.vala
@@ -53,7 +53,7 @@ class ScrollbarMarker
                }
        }
 
-       private unowned Scrollbar? d_scrollbar;
+       private Scrollbar? d_scrollbar;
        private HashMap<uint, LinkedList<Marker>> d_markers;
        private int d_spacing;
        private int d_maxline;


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