/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: Curtis Hovey
  • Date: 2011-08-01 14:46:23 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110801144623-ldjf0bu7kyi5bxzu
Updated commit to gtk3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    """Prompt the user for a yes/no answer."""
29
29
 
30
30
    def __init__(self, prompt):
31
 
        GObject.GObject.__init__(self)
 
31
        Gtk.Dialog.__init__(self)
32
32
 
33
33
        label = Gtk.Label(label=prompt)
34
34
        self.vbox.pack_start(label, True, True, 10)
41
41
class GtkProgressBar(Gtk.ProgressBar):
42
42
 
43
43
    def __init__(self):
44
 
        GObject.GObject.__init__(self)
 
44
        Gtk.ProgressBar.__init__(self)
45
45
        self.set_fraction(0.0)
46
46
        self.current = None
47
47
        self.total = None
138
138
    """ Prompt the user for a password. """
139
139
 
140
140
    def __init__(self, prompt):
141
 
        GObject.GObject.__init__(self)
 
141
        Gtk.Dialog.__init__(self)
142
142
 
143
143
        label = Gtk.Label(label=prompt)
144
144
        self.vbox.pack_start(label, True, True, 10)