[meld] tree.py: Fix treeview_search_cb() argument mismatch



commit 7ffaf8b06187f8246dd8f70076973f10dcb8fa7b
Author: Peter Tyser <ptyser gmail com>
Date:   Fri Nov 22 21:27:51 2013 -0600

    tree.py: Fix treeview_search_cb() argument mismatch
    
    When trying to find a file in dirdiff or vcview mode the following
    error would be displayed:
      TypeError: treeview_search_cb() takes exactly 5 arguments (6 given)
    
    Add an unused "data" argument to treeview_search_cb() to silence the
    warning and allow file searching to work.
    
    Signed-off-by: Peter Tyser <ptyser gmail com>

 meld/tree.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/tree.py b/meld/tree.py
index aa57c9d..bcc7251 100644
--- a/meld/tree.py
+++ b/meld/tree.py
@@ -221,7 +221,7 @@ class DiffTreeStore(Gtk.TreeStore):
 
         return prev_path, next_path
 
-    def treeview_search_cb(self, model, column, key, it):
+    def treeview_search_cb(self, model, column, key, it, data):
         # If the key contains a path separator, search the whole path,
         # otherwise just use the filename. If the key is all lower-case, do a
         # case-insensitive match.


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