/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: Jelmer Vernooij
  • Date: 2012-03-29 13:15:14 UTC
  • mfrom: (786.1.1 register-lazy)
  • Revision ID: jelmer@samba.org-20120329131514-knrl1w2wzntx89rv
Use lazy registration.

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)
78
77
 
79
78
        self._diff = DiffWidget()
80
79
        self._diff.show()
81
 
        hbox.pack_end(self._diff)
 
80
        hbox.pack_end(self._diff, False, False, 0)
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)