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

  • Committer: Curtis Hovey
  • Date: 2011-08-12 20:25:28 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110812202528-4xf4a2t23urx50d2
Updated gst to gtk3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        for rev in revisions:
41
41
            rv = RevisionView()
42
42
            rv.set_revision(rev)
43
 
            vbox.pack_start(rv, True, True, 0)
 
43
            vbox.pack_start(rv, True, True)
44
44
        extra_revs.add_with_viewport(vbox)
45
45
        extra_revs.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
46
46
        return extra_revs
47
47
 
48
48
    def _create(self):
49
49
        self.set_default_size(600, 600)
50
 
        paned = Gtk.Paned.new(Gtk.Orientation.VERTICAL)
 
50
        paned = Gtk.VPaned()
51
51
 
52
 
        frame = Gtk.Frame(label="You have the following extra revisions:")
 
52
        frame = Gtk.Frame("You have the following extra revisions:")
53
53
 
54
54
        extra_revs = self._create_revisions_frame(
55
55
                self.local_branch.repository.get_revisions(
61
61
                self.remote_branch.repository.get_revisions(
62
62
                    map(lambda (x,y):y, self.remote_extra)))
63
63
 
64
 
        frame = Gtk.Frame(label="You are missing following revisions:")
 
64
        frame = Gtk.Frame("You are missing following revisions:")
65
65
        frame.add(missing_revs)
66
66
 
67
67
        paned.pack2(frame, resize=False, shrink=True)
68
68
 
69
 
        self.get_content_area().pack_start(paned, True, True, 0)
70
 
        self.get_content_area().show_all()
 
69
        self.vbox.pack_start(paned, True, True)
 
70
        self.vbox.show_all()