/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 20:30:59 UTC
  • mto: (0.12.2 olive)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: jelmer@samba.org-20060927203059-85792ae0a81db524
Bunch of small fixes, cleanups and simplifications.

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
        
39
42
        self.window = self.glade.get_widget('window_remove')
40
43
        
41
44
        # Dictionary for signal_autoconnect
82
85
            except errors.NotBranchError:
83
86
                error_dialog(_('Directory is not a branch'),
84
87
                                         _('You can perform this action only in a branch.'))
 
88
                self.comm.set_busy(self.window, False)
85
89
                return
86
90
            
87
91
            added = wt.changes_from(wt.basis_tree()).added
89
93
            if len(file_list) == 0:
90
94
                dialog.warning_dialog(_('No matching files'),
91
95
                                      _('No added files were found in the working tree.'))
 
96
                self.comm.set_busy(self.window, False)
92
97
                return
93
98
            wt.remove(file_list)
94
99
        
95
100
        self.close()
 
101
        self.comm.refresh_right()
96
102
    
97
103
    def close(self, widget=None):
98
104
        self.window.destroy()