[meld] Allow reordering of tabs



commit 371f4ebce672465c867a64b856a7f48fd9015cd5
Author: Peter Tyser <ptyser gmail com>
Date:   Tue Aug 31 01:17:57 2010 -0500

    Allow reordering of tabs
    
    This can be useful when many diffs are open in tabs.  For example,
    say diffA, diffB, and diffC are open in tabs, and diffA and diffC
    have similar changes.  To quickly compare the changes in diffA
    to diffC it is convenient to have the 2 tabs next to each other
    so that they can quickly be toggled between.  Allowing reordering
    lets the user move the diffA tab to be next to the diffC tab for
    quick comparison.
    
    Signed-off-by: Peter Tyser <ptyser gmail com>

 meld/meldapp.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/meld/meldapp.py b/meld/meldapp.py
index 0f6d771..2431d57 100644
--- a/meld/meldapp.py
+++ b/meld/meldapp.py
@@ -497,6 +497,9 @@ class MeldApp(gnomeglade.Component):
         page.connect("create-diff", lambda obj,arg: self.append_diff(arg) )
         page.connect("status-changed", lambda junk,arg: self.statusbar.set_doc_status(arg) )
 
+        # Allow reordering of tabs
+        self.notebook.set_tab_reorderable(page.widget, True);
+
     def append_dirdiff(self, dirs, auto_compare=False):
         assert len(dirs) in (1,2,3)
         doc = dirdiff.DirDiff(self.prefs, len(dirs))



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