[meld] dirdiff: Fix old, old regression in initial cursor position



commit 49847bee9bef46cc01c067a04acdac9b3752559c
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Aug 13 06:00:25 2017 +1000

    dirdiff: Fix old, old regression in initial cursor position
    
    No idea when this broke, but because we just set the selection instead
    of setting the cursor position, when you start up a folder comparison
    you couldn't immediately navigate with Alt+Up/Down; you needed a cursor
    move first.
    
    There's no good reason for this, so just fix it up by setting the cursor
    on initial load instead.

 meld/dirdiff.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index 7ba4416..b26acae 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -823,8 +823,8 @@ class DirDiff(melddoc.MeldDoc, gnomeglade.Component):
         yield _("[%s] Done") % self.label_text
 
         self._scan_in_progress -= 1
-        self.treeview[0].get_selection().select_path(Gtk.TreePath.new_first())
         self.force_cursor_recalculate = True
+        self.treeview[0].set_cursor(Gtk.TreePath.new_first())
         self._update_diffmaps()
 
     def _show_identical_status(self):


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