/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: Jelmer Vernooij
  • Date: 2007-03-13 16:48:48 UTC
  • Revision ID: jelmer@samba.org-20070313164848-x8j21t8u7ege6ml0
Initial work on a preferences dialog in GTK+, including a list of plugins with metadata browser.

Screenshot at http://samba.org/~jelmer/bzr/bzr-pluginlist.png

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
 
424
424
register_command(cmd_gconflicts)
425
425
 
 
426
class cmd_gpreferences(Command):
 
427
    """ GTK+ preferences dialog.
 
428
 
 
429
    """
 
430
    def run(self):
 
431
        pygtk = import_pygtk()
 
432
        try:
 
433
            import gtk
 
434
        except RuntimeError, e:
 
435
            if str(e) == "could not open display":
 
436
                raise NoDisplayError
 
437
 
 
438
        from bzrlib.plugins.gtk.preferences import PreferencesWindow
 
439
 
 
440
        set_ui_factory()
 
441
        dialog = PreferencesWindow()
 
442
        dialog.run()
 
443
 
 
444
register_command(cmd_gpreferences)
 
445
 
426
446
import gettext
427
447
gettext.install('olive-gtk')
428
448