[meld] Fix linkmap not updating with TextView size changes
- From: Kai Willadsen <kaiw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [meld] Fix linkmap not updating with TextView size changes
- Date: Sat, 10 Oct 2009 02:37:28 +0000 (UTC)
commit 408948555e6cbde1f3f4467cc7235d7a8bf230f0
Author: Kai Willadsen <kai willadsen gmail com>
Date: Wed Jul 15 09:33:35 2009 +1000
Fix linkmap not updating with TextView size changes
The linkmap widgets need to update when the sizes of their associated
TextViews change. Currently, TextView size changes only occur with other
events that end up causing a repaint, but with per-pane MsgAreas the
sizes will change independently.
meld/filediff.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index de3fd10..b6870c3 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -479,6 +479,13 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.actiongroup.get_action("CopyAllRight").set_sensitive(pane+1 < self.num_panes)
self.popup_menu.popup(None, None, None, 3, gtk.get_current_event_time())
+ def on_scrolledwindow__size_allocate(self, scrolledwindow, allocation):
+ index = self.scrolledwindow.index(scrolledwindow)
+ if index == 0 or index == 1:
+ self.linkmap[0].queue_draw()
+ if index == 1 or index == 2:
+ self.linkmap[1].queue_draw()
+
def on_textview_button_press_event(self, textview, event):
if event.button == 3:
textview.grab_focus()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]