[meld] Queue textviews for redraw along with other custom drawing



commit 67c4ae4d87ef60440445e8b76405644d6dfbcb0f
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Tue Jul 21 08:53:06 2009 +1000

    Queue textviews for redraw along with other custom drawing
    
    Our textview drawing needs to be updated at the same time that the
    linkmap and diffmap are. In most cases, highlighting updates or other
    changes resulted in an expose, but in some cases (e.g., typing in blank
    panes) a manual queue is required.

 filediff.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/filediff.py b/filediff.py
index 3146b3f..dc5a21b 100644
--- a/filediff.py
+++ b/filediff.py
@@ -896,6 +896,8 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
         self.set_files([None] * self.num_panes)
 
     def queue_draw(self, junk=None):
+        for t in self.textview:
+            t.queue_draw()
         for i in range(self.num_panes-1):
             self.linkmap[i].queue_draw()
         self.diffmap0.queue_draw()



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