/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/__init__.py

  • Committer: Jasper Groenewegen
  • Date: 2008-08-17 14:06:12 UTC
  • mto: This revision was merged to the branch mainline in revision 600.
  • Revision ID: colbrac@xs4all.nl-20080817140612-7zev31b45qw18jtw
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

Show diffs side-by-side

added added

removed removed

Lines of Context:
660
660
            remove.hide()
661
661
        
662
662
            if response == gtk.RESPONSE_OK:
663
 
                self.set_path(self.path)
664
663
                self.refresh_right()
665
664
            
666
665
            remove.destroy()
703
702
    def on_menuitem_view_show_hidden_files_activate(self, widget):
704
703
        """ View/Show hidden files menu handler. """
705
704
        self.pref.set_preference('dotted_files', widget.get_active())
 
705
        self.pref.write()
706
706
        if self.path is not None:
707
707
            self.refresh_right()
708
708
 
709
709
    def on_menuitem_view_show_ignored_files_activate(self, widget):
710
710
        """ Hide/Show ignored files menu handler. """
711
711
        self.pref.set_preference('ignored_files', widget.get_active())
 
712
        self.pref.write()
712
713
        if self.path is not None:
713
714
            self.refresh_right()
714
715
            
949
950
        if not self.remote:
950
951
            # We're local
951
952
            from bzrlib.workingtree import WorkingTree
952
 
    
 
953
            
953
954
            path = self.get_path()
954
955
            
955
956
            # Get ListStore and clear it
956
957
            liststore = self.window.filelist
957
958
            liststore.clear()
958
 
    
 
959
            
959
960
            dirs = []
960
961
            files = []
961
 
    
 
962
            
962
963
            # Fill the appropriate lists
963
964
            dotted_files = self.pref.get_preference('dotted_files', 'bool')
964
965
            ignored_files = self.pref.get_preference('ignored_files', 'bool')
965
 
 
 
966
            
966
967
            for item in os.listdir(path):
967
968
                if not dotted_files and item[0] == '.':
968
969
                    continue
977
978
                    tree1 = WorkingTree.open_containing(os.path.realpath(path))[0]
978
979
                    branch = tree1.branch
979
980
                    tree2 = tree1.branch.repository.revision_tree(branch.last_revision())
980
 
                
 
981
                    
981
982
                    delta = tree1.changes_from(tree2, want_unchanged=True)
982
983
                    
983
984
                    # Show Status column