/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 viz/branchwin.py

  • Committer: Daniel Schierbeck
  • Date: 2007-11-08 16:18:49 UTC
  • Revision ID: daniel.schierbeck@gmail.com-20071108161849-vxe3o7bxd2mfmz3k
Fixed crash when toggling compact view.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        vbox = gtk.VBox(spacing=0)
78
78
        self.add(vbox)
79
79
 
80
 
        top = gtk.Alignment(0.0, 0.0, 1.0, 1.0)
81
 
        top.set_padding(5, 0, 0, 0)
82
 
        top.add(self.construct_top())
83
 
        top.show()
 
80
        self.paned = gtk.VPaned()
 
81
        self.paned.pack1(self.construct_top(), resize=True, shrink=False)
 
82
        self.paned.pack2(self.construct_bottom(), resize=False, shrink=True)
 
83
        self.paned.show()
84
84
 
85
85
        vbox.pack_start(self.construct_menubar(), expand=False, fill=True)
86
86
        vbox.pack_start(self.construct_navigation(), expand=False, fill=True)
87
87
        vbox.pack_start(self.construct_loading_msg(), expand=False, fill=True)
88
88
        
89
 
        self.paned = gtk.VPaned()
90
 
        self.paned.pack1(top, resize=True, shrink=False)
91
 
        self.paned.pack2(self.construct_bottom(), resize=False, shrink=True)
92
 
        self.paned.show()
93
89
        vbox.pack_start(self.paned, expand=True, fill=True)
94
90
        vbox.set_focus_child(self.paned)
95
91
 
256
252
 
257
253
        self.treeview.show()
258
254
 
259
 
        return self.treeview
 
255
        align = gtk.Alignment(0.0, 0.0, 1.0, 1.0)
 
256
        align.set_padding(5, 0, 0, 0)
 
257
        align.add(self.treeview)
 
258
        align.show()
 
259
 
 
260
        return align
260
261
 
261
262
    def construct_navigation(self):
262
263
        """Construct the navigation buttons."""
379
380
 
380
381
        revision = self.treeview.get_revision()
381
382
 
382
 
        self.treeview.destroy()
 
383
        self.paned.get_child1().destroy()
383
384
        self.paned.pack1(self.construct_top(), resize=True, shrink=False)
384
385
 
385
386
        gobject.idle_add(self.set_revision, revision.revision_id)