[meld] Add comparisons opened from new diff tab to recently-used comparisons
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Add comparisons opened from new diff tab to recently-used comparisons
- Date: Wed, 9 Jan 2013 20:04:44 +0000 (UTC)
commit d54c5c796ef640cef90ca1f28365c4a175bf9b8b
Author: Kai Willadsen <kai willadsen gmail com>
Date: Mon Dec 24 10:21:34 2012 +1000
Add comparisons opened from new diff tab to recently-used comparisons
meld/new_diff_dialog.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/meld/new_diff_dialog.py b/meld/new_diff_dialog.py
index 4b208be..a08fd26 100644
--- a/meld/new_diff_dialog.py
+++ b/meld/new_diff_dialog.py
@@ -19,8 +19,10 @@ import os
import gobject
import gtk
-import paths
-from ui import gnomeglade
+from . import paths
+from .ui import gnomeglade
+
+from .meldapp import app
class NewDiffTab(gobject.GObject, gnomeglade.Component):
@@ -95,6 +97,7 @@ class NewDiffTab(gobject.GObject, gnomeglade.Component):
compare_paths.append(path)
tab = self.diff_methods[self.diff_type](compare_paths)
+ app.recent_comparisons.add(tab)
self.emit('diff-created', tab)
def on_button_new_blank_clicked(self, *args):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]