[PATCH] Vcview should not use knowledge of historyentry's internals



I think vcview should use historyentry the same way as dirdiff & filediff,
by using its exposed API methods and not directly poking at its internals.

This is a no-op fix that is orthogonal to other historyentry.py work
and I think it
should go in regardless of the other patches.

Nothing is changed by that patch, the same code is executed, we just don't
open code historyfileentry behavior in vcview, we just use the provided API.

-- 
Vincent Legoll
Index: vcview.py
===================================================================
--- vcview.py	(revision 1282)
+++ vcview.py	(working copy)
@@ -227,7 +227,7 @@
 
     def _set_location(self, location):
         self.model.clear()
-        self.fileentry.gtk_entry.set_text(location)
+        self.fileentry.set_filename(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]