[Pkg-bazaar-commits] ./bzr-gtk/unstable r600: Merge fix for filelist view preferences in Olive

Jasper Groenewegen colbrac at xs4all.nl
Fri Apr 10 07:50:51 UTC 2009


------------------------------------------------------------
revno: 600
committer: Jasper Groenewegen <colbrac at xs4all.nl>
branch nick: trunk
timestamp: Sun 2008-08-24 22:38:29 +0200
message:
  Merge fix for filelist view preferences in Olive
modified:
  olive/__init__.py
    ------------------------------------------------------------
    revno: 599.1.1
    committer: Jasper Groenewegen <colbrac at xs4all.nl>
    branch nick: hiddenfiles
    timestamp: Sun 2008-08-17 16:06:12 +0200
    message:
      Showing hidden/ignored files were not properly saved since the self.pref Preferences object gets overwritten everytime refresh/refresh_left() is performed.
      Also removed set_path call since all set_path does is setting self.path + white space tweaks in refresh_right
    modified:
      olive/__init__.py
-------------- next part --------------
=== modified file 'olive/__init__.py'
--- a/olive/__init__.py	2008-08-05 23:21:16 +0000
+++ b/olive/__init__.py	2008-08-17 14:06:12 +0000
@@ -660,7 +660,6 @@
             remove.hide()
         
             if response == gtk.RESPONSE_OK:
-                self.set_path(self.path)
                 self.refresh_right()
             
             remove.destroy()
@@ -703,12 +702,14 @@
     def on_menuitem_view_show_hidden_files_activate(self, widget):
         """ View/Show hidden files menu handler. """
         self.pref.set_preference('dotted_files', widget.get_active())
+        self.pref.write()
         if self.path is not None:
             self.refresh_right()
 
     def on_menuitem_view_show_ignored_files_activate(self, widget):
         """ Hide/Show ignored files menu handler. """
         self.pref.set_preference('ignored_files', widget.get_active())
+        self.pref.write()
         if self.path is not None:
             self.refresh_right()
             
@@ -949,20 +950,20 @@
         if not self.remote:
             # We're local
             from bzrlib.workingtree import WorkingTree
-    
+            
             path = self.get_path()
             
             # Get ListStore and clear it
             liststore = self.window.filelist
             liststore.clear()
-    
+            
             dirs = []
             files = []
-    
+            
             # Fill the appropriate lists
             dotted_files = self.pref.get_preference('dotted_files', 'bool')
             ignored_files = self.pref.get_preference('ignored_files', 'bool')
-
+            
             for item in os.listdir(path):
                 if not dotted_files and item[0] == '.':
                     continue
@@ -977,7 +978,7 @@
                     tree1 = WorkingTree.open_containing(os.path.realpath(path))[0]
                     branch = tree1.branch
                     tree2 = tree1.branch.repository.revision_tree(branch.last_revision())
-                
+                    
                     delta = tree1.changes_from(tree2, want_unchanged=True)
                     
                     # Show Status column



More information about the Pkg-bazaar-commits mailing list