/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/remove.py

  • Committer: Jelmer Vernooij
  • Date: 2006-09-27 21:05:19 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927210519-7bc2662211808af5
Bunch of other small updates, add more items to 
the TODO list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        """ Initialize the Remove file(s) dialog. """
37
37
        self.glade = gtk.glade.XML(gladefile, 'window_remove')
38
38
        
39
 
        # Communication object
40
 
        self.comm = comm
41
 
        
42
39
        self.window = self.glade.get_widget('window_remove')
43
40
        
44
41
        # Dictionary for signal_autoconnect
85
82
            except errors.NotBranchError:
86
83
                error_dialog(_('Directory is not a branch'),
87
84
                                         _('You can perform this action only in a branch.'))
88
 
                self.comm.set_busy(self.window, False)
89
85
                return
90
86
            
91
87
            added = wt.changes_from(wt.basis_tree()).added
93
89
            if len(file_list) == 0:
94
90
                dialog.warning_dialog(_('No matching files'),
95
91
                                      _('No added files were found in the working tree.'))
96
 
                self.comm.set_busy(self.window, False)
97
92
                return
98
93
            wt.remove(file_list)
99
94
        
100
95
        self.close()
101
 
        self.comm.refresh_right()
102
96
    
103
97
    def close(self, widget=None):
104
98
        self.window.destroy()