meld r1306 - trunk



Author: kaiw
Date: Sun Mar 29 10:27:45 2009
New Revision: 1306
URL: http://svn.gnome.org/viewvc/meld?rev=1306&view=rev

Log:
Add paths to history whenever we select files or directories


Modified:
   trunk/dirdiff.py
   trunk/filediff.py
   trunk/meldapp.py
   trunk/vcview.py

Modified: trunk/dirdiff.py
==============================================================================
--- trunk/dirdiff.py	(original)
+++ trunk/dirdiff.py	Sun Mar 29 10:27:45 2009
@@ -361,6 +361,7 @@
         self.model.clear()
         for pane, loc in enumerate(locations):
             self.fileentry[pane].set_filename(loc)
+            self.fileentry[pane].prepend_history(loc)
         child = self.model.add_entries(None, locations)
         self.treeview0.grab_focus()
         self._update_item_state(child)

Modified: trunk/filediff.py
==============================================================================
--- trunk/filediff.py	(original)
+++ trunk/filediff.py	Sun Mar 29 10:27:45 2009
@@ -510,6 +510,7 @@
                 self.textbuffer[i].delete(*self.textbuffer[i].get_bounds())
                 absfile = os.path.abspath(f)
                 self.fileentry[i].set_filename(absfile)
+                self.fileentry[i].prepend_history(absfile)
                 bold, bnew = self.bufferdata[i], MeldBufferData(absfile)
                 if bold.filename == bnew.filename:
                     bnew.label = bold.label
@@ -756,6 +757,7 @@
             if filename:
                 bufdata.filename = bufdata.label = os.path.abspath(filename)
                 self.fileentry[pane].set_filename( bufdata.filename)
+                self.fileentry[pane].prepend_history(bufdata.filename)
             else:
                 return melddoc.RESULT_ERROR
         text = buf.get_text(buf.get_start_iter(), buf.get_end_iter(), 0)

Modified: trunk/meldapp.py
==============================================================================
--- trunk/meldapp.py	(original)
+++ trunk/meldapp.py	Sun Mar 29 10:27:45 2009
@@ -93,7 +93,7 @@
             if page < 2 and not self.three_way_compare[page].get_active():
                 paths.pop(0)
             for path in paths:
-                self.entrylists[page][0].append_history(path)
+                self.entrylists[page][0].prepend_history(path)
             self.diff_methods[page](paths)
         self.widget.destroy()
 

Modified: trunk/vcview.py
==============================================================================
--- trunk/vcview.py	(original)
+++ trunk/vcview.py	Sun Mar 29 10:27:45 2009
@@ -227,6 +227,7 @@
         self.location = location
         self.model.clear()
         self.fileentry.set_filename(location)
+        self.fileentry.prepend_history(location)
         it = self.model.add_entries( None, [location] )
         self.treeview.grab_focus()
         self.treeview.get_selection().select_iter(it)



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