[meld] filediff: Remove old invalidate/process code for Linkmaps



commit c2ee4c9be876c7d7d4be0e58869e001dc1f34c46
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Mon Dec 30 08:37:33 2013 +1000

    filediff: Remove old invalidate/process code for Linkmaps
    
    This used to exist to give nicer scrolling behaviour to synchronise
    Linkmap updates with the scrolling of the ScrolledWindow. Now, it just
    imposes a massive performance penalty and doesn't seem to really
    improve matters.

 meld/filediff.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index a3a23ed..a56c399 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -1845,9 +1845,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
             self._sync_vscroll_lock = False
 
         for lm in self.linkmap:
-            if lm.get_window():
-                lm.get_window().invalidate_rect(None, True)
-                lm.get_window().process_updates(True)
+            lm.queue_draw()
 
     def set_num_panes(self, n):
         if n != self.num_panes and n in (1,2,3):


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