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

  • Committer: Jelmer Vernooij
  • Date: 2007-01-29 23:27:09 UTC
  • Revision ID: jelmer@samba.org-20070129232709-0yygg83sh9is3xvw
Use decorator for catching and showing bzr-gtk errors graphically. Eventually, this should go away and should be handled by the ui factory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        """ Display the Make directory dialog. """
54
54
        self.window.show_all()
55
55
 
 
56
    @show_bzr_error
56
57
    def mkdir(self, widget):
57
58
        # Get the widgets
58
59
        entry = self.glade.get_widget('entry_mkdir')
77
78
                                 _('Please specify another name to continue.'))
78
79
                else:
79
80
                    raise
80
 
            except errors.NotBranchError:
81
 
                warning_dialog(_('Directory is not in a branch'),
82
 
                               _('You can only create a non-versioned directory.'))
83
81
        else:
84
82
            # Just a simple directory
85
83
            try: