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

  • Committer: Curtis Hovey
  • Date: 2011-09-05 03:44:26 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110905034426-p98pxnay9rmzkr99
Fix the initializer for many classes.
Replace Gtk.Dialog.vbox with .get_content_area().

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from gi.repository import GObject
2
1
from gi.repository import Gtk
3
2
 
4
3
 
47
46
class LockDialog(Gtk.Dialog):
48
47
 
49
48
    def __init__(self, branch):
50
 
        GObject.GObject.__init__(self)
 
49
        super(LockDialog, self).__init__()
51
50
 
52
51
        self.branch = branch
53
52
 
54
53
        self.set_title('Lock Not Held')
55
54
 
56
 
        self.vbox.add(Gtk.Label(label='This operation cannot be completed as ' \
57
 
                                'another application has locked the branch.'))
 
55
        self.get_content_area().add(
 
56
            Gtk.Label(label=(
 
57
                'This operation cannot be completed as '
 
58
                'another application has locked the branch.')))
58
59
 
59
60
        self.add_button('Break Lock', RESPONSE_BREAK)
60
61
        self.add_button(Gtk.STOCK_CANCEL, RESPONSE_CANCEL)
61
62
 
62
 
        self.vbox.show_all()
 
63
        self.get_content_area().show_all()