/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 loom.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:
30
30
    """Simple Loom browse dialog."""
31
31
 
32
32
    def __init__(self, branch, tree=None, parent=None):
33
 
        GObject.GObject.__init__(self, title="Threads",
34
 
                                  parent=parent,
35
 
                                  flags=0,
36
 
                                  buttons=(Gtk.STOCK_CLOSE,Gtk.ResponseType.OK))
 
33
        super(LoomDialog, self).__init__(
 
34
            title="Threads", parent=parent, flags=0,
 
35
            buttons=(Gtk.STOCK_CLOSE,Gtk.ResponseType.OK))
37
36
        self.branch = branch
38
37
        if tree is not None:
39
38
            self.tree = loom_tree.LoomTreeDecorator(tree)
81
80
        hbox.pack_end(self._diff)
82
81
 
83
82
        hbox.show_all()
84
 
        self.vbox.pack_start(hbox, True, True, 0)
 
83
        self.get_content_area().pack_start(hbox, True, True, 0)
85
84
 
86
85
        # FIXME: Buttons: combine-thread, revert-loom, record
87
86
        self.set_default_size(500, 350)