/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-07-31 15:52:43 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110731155243-ln8istmxbryhb4pz
Mechanical changes made by pygi.convert.sh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
try:
 
18
    import pygtk
 
19
    pygtk.require("2.0")
 
20
except:
 
21
    pass
 
22
 
17
23
from gi.repository import Gtk
18
24
from gi.repository import GObject
19
25
 
30
36
    """Simple Loom browse dialog."""
31
37
 
32
38
    def __init__(self, branch, tree=None, parent=None):
33
 
        super(LoomDialog, self).__init__(
34
 
            title="Threads", parent=parent, flags=0,
35
 
            buttons=(Gtk.STOCK_CLOSE,Gtk.ResponseType.OK))
 
39
        GObject.GObject.__init__(self, title="Threads",
 
40
                                  parent=parent,
 
41
                                  flags=0,
 
42
                                  buttons=(Gtk.STOCK_CLOSE,Gtk.ResponseType.OK))
36
43
        self.branch = branch
37
44
        if tree is not None:
38
45
            self.tree = loom_tree.LoomTreeDecorator(tree)
77
84
 
78
85
        self._diff = DiffWidget()
79
86
        self._diff.show()
80
 
        hbox.pack_end(self._diff, False, False, 0)
 
87
        hbox.pack_end(self._diff)
81
88
 
82
89
        hbox.show_all()
83
 
        self.get_content_area().pack_start(hbox, True, True, 0)
 
90
        self.vbox.pack_start(hbox, True, True, 0)
84
91
 
85
92
        # FIXME: Buttons: combine-thread, revert-loom, record
86
93
        self.set_default_size(500, 350)