/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: Gustav Hartvigsson
  • Date: 2014-11-25 15:34:07 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20141125153407-827k8g7qy9u5byd5
* Fixed bzr-gtk's viz util, using the new Gtk Inspector.

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)