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

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2007-02-01 10:52:33 UTC
  • mto: (157.1.2 trunk) (170.1.3 trunk)
  • mto: This revision was merged to the branch mainline in revision 141.
  • Revision ID: szilveszter.farkas@gmail.com-20070201105233-q0azmkxxawlyhemi
Improved Branch dialog. Refactored Checkout dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
 
101
101
register_command(cmd_gbranch)
102
102
 
 
103
class cmd_gcheckout(Command):
 
104
    """ GTK+ checkout.
 
105
    
 
106
    """
 
107
    
 
108
    def run(self):
 
109
        pygtk = import_pygtk()
 
110
        try:
 
111
            import gtk
 
112
        except RuntimeError, e:
 
113
            if str(e) == "could not open display":
 
114
                raise NoDisplayError
 
115
 
 
116
        from bzrlib.plugins.gtk.olive.checkout import CheckoutDialog
 
117
 
 
118
        set_ui_factory()
 
119
        dialog = CheckoutDialog(os.path.abspath('.'))
 
120
        dialog.run()
 
121
 
 
122
register_command(cmd_gcheckout)
 
123
 
103
124
class cmd_gdiff(Command):
104
125
    """Show differences in working tree in a GTK+ Window.
105
126