[meld] Prevent identical files notification from flashing on reload
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Prevent identical files notification from flashing on reload
- Date: Sun, 4 Apr 2010 20:39:03 +0000 (UTC)
commit d9a76822d49185196e8322c24a1a3b9951d36552
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Mar 12 17:12:23 2010 +1000
Prevent identical files notification from flashing on reload
meld/filediff.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index baad39d..e033776 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -651,6 +651,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
"""Set num panes to len(files) and load each file given.
If an element is None, the text of a pane is left as is.
"""
+ self._disconnect_buffer_handlers()
for i,f in enumerate(files):
if f:
self.textbuffer[i].delete(*self.textbuffer[i].get_bounds())
@@ -664,6 +665,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.msgarea_mgr[i].clear()
self.recompute_label()
self.textview[len(files) >= 2].grab_focus()
+ self._connect_buffer_handlers()
self.scheduler.add_task( self._set_files_internal(files).next )
def _load_files(self, files, textbuffers, panetext):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]