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

  • Committer: Jelmer Vernooij
  • Date: 2007-02-03 11:52:13 UTC
  • Revision ID: jelmer@samba.org-20070203115213-qz5549tkrt2wsz05
Move more code to top-level directory. 
Import (last proposed) logo for Bazaar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
 
65
65
class GtkUIFactory(UIFactory):
66
 
    """A UI factory for GTK user interefaces."""
 
66
    """A UI factory for GTK user interfaces."""
67
67
 
68
68
    def __init__(self,
69
69
                 bar_type=None,
91
91
        dialog = PromptDialog(prompt)
92
92
        response = dialog.run()
93
93
        dialog.destroy()
94
 
        if response == gtk.RESPONSE_YES:
95
 
            return True
96
 
        else:
97
 
            return False
 
94
        return (response == gtk.RESPONSE_YES)
98
95
        
99
96
    @deprecated_method(zero_eight)
100
97
    def progress_bar(self):