/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 branchview/treeview.py

  • Committer: Russ Brown
  • Date: 2008-06-06 18:04:45 UTC
  • mto: This revision was merged to the branch mainline in revision 509.
  • Revision ID: pickscrape@gmail.com-20080606180445-5j2errz6vel1gaek
Added NEWS item for Refresh menu option and shortcut.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
import re
15
15
import treemodel
16
16
 
 
17
from bzrlib.plugins.gtk import _i18n
17
18
from linegraph import linegraph, same_branch
18
19
from graphcell import CellRendererGraph
19
20
from treemodel import TreeModel
301
302
        self.index = index
302
303
        self.treeview.set_model(self.model)
303
304
 
304
 
        if revision is None:
 
305
        if not revision or revision == NULL_REVISION:
305
306
            self.treeview.set_cursor(0)
306
307
        else:
307
308
            self.set_revision(revision)
397
398
                                                 gtk.ICON_SIZE_BUTTON)
398
399
        image_loading.show()
399
400
        
400
 
        label_loading = gtk.Label(_("Please wait, loading ancestral graph..."))
 
401
        label_loading = gtk.Label(
 
402
            _i18n("Please wait, loading ancestral graph..."))
401
403
        label_loading.set_alignment(0.0, 0.5)
402
404
        label_loading.show()
403
405