/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: Szilveszter Farkas (Phanatic)
  • Date: 2007-04-06 17:48:23 UTC
  • mto: (188.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 190.
  • Revision ID: szilveszter.farkas@gmail.com-20070406174823-bclt7vsgn2nkcas2
Implemented init functionality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from bzrlib.config import GlobalConfig
26
26
from bzrlib.missing import find_unmerged
27
27
 
28
 
from revisionview import RevisionView
 
28
from logview import LogView
29
29
 
30
30
class MissingWindow(gtk.Dialog):
31
31
    """Displays revisions present in one branch but missing in 
44
44
        extra_revs = gtk.ScrolledWindow()
45
45
        vbox = gtk.VBox()
46
46
        for rev in revisions:
47
 
            rv = RevisionView()
48
 
            rv.set_revision(rev)
49
 
            vbox.pack_start(rv, True, True)
 
47
            vbox.pack_start(LogView(rev, scroll=False), True, True)
50
48
        extra_revs.add_with_viewport(vbox)
51
49
        extra_revs.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
52
50
        return extra_revs
74
72
 
75
73
        self.vbox.pack_start(paned, True, True)
76
74
        self.vbox.show_all()
 
75
 
 
76
    def display(self):
 
77
        self.window.show_all()
 
78
 
 
79
    def close(self, widget=None):
 
80
        self.window.destroy()