/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: Vincent Ladeuil
  • Date: 2008-05-05 18:16:46 UTC
  • mto: (487.1.1 gtk)
  • mto: This revision was merged to the branch mainline in revision 490.
  • Revision ID: v.ladeuil+lp@free.fr-20080505181646-n95l8ltw2u6jtr26
Fix bug #187283 fix replacing _() by _i18n().

* genpot.sh 
Remove duplication. Add the ability to specify the genrated pot
file on command-line for debugging purposes.

* po/olive-gtk.pot:
Regenerated.

* __init__.py, branch.py, branchview/treeview.py, checkout.py,
commit.py, conflicts.py, diff.py, errors.py, initialize.py,
merge.py, nautilus-bzr.py, olive/__init__.py, olive/add.py,
olive/bookmark.py, olive/guifiles.py, olive/info.py,
olive/menu.py, olive/mkdir.py, olive/move.py, olive/remove.py,
olive/rename.py, push.py, revbrowser.py, status.py, tags.py:
Replace all calls to _() by calls to _i18n(), the latter being
defined in __init__.py and imported in the other modules from
there. This fix the problem encountered countless times when
running bzr selftest and getting silly error messages about
boolean not being callables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
"""
5
5
 
6
 
__copyright__ = "Copyright © 2005 Canonical Ltd."
 
6
__copyright__ = "Copyright � 2005 Canonical Ltd."
7
7
__author__    = "Daniel Schierbeck <daniel.schierbeck@gmail.com>"
8
8
 
9
9
import sys
286
286
 
287
287
        self.branch.lock_read()
288
288
        (linegraphdata, index, columns_len) = linegraph(self.branch.repository,
289
 
                                                        (self.start,) , # Sequence of start revisions
 
289
                                                        self.start,
290
290
                                                        self.maxnum, 
291
291
                                                        broken_line_length,
292
292
                                                        show_graph,
339
339
        cell.set_property("width-chars", 15)
340
340
        cell.set_property("ellipsize", pango.ELLIPSIZE_END)
341
341
        self.revno_column = gtk.TreeViewColumn("Revision No")
342
 
        self.revno_column.set_resizable(False)
 
342
        self.revno_column.set_resizable(True)
343
343
        self.revno_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
344
344
        self.revno_column.set_fixed_width(cell.get_size(self.treeview)[2])
345
345
        self.revno_column.pack_start(cell, expand=True)
348
348
 
349
349
        self.graph_cell = CellRendererGraph()
350
350
        self.graph_column = gtk.TreeViewColumn()
351
 
        self.graph_column.set_resizable(False)
 
351
        self.graph_column.set_resizable(True)
352
352
        self.graph_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
353
 
        self.graph_column.pack_start(self.graph_cell, expand=True)
 
353
        self.graph_column.pack_start(self.graph_cell, expand=False)
354
354
        self.graph_column.add_attribute(self.graph_cell, "node", treemodel.NODE)
355
355
        self.graph_column.add_attribute(self.graph_cell, "tags", treemodel.TAGS)
356
356
        self.graph_column.add_attribute(self.graph_cell, "in-lines", treemodel.LAST_LINES)
361
361
        cell.set_property("width-chars", 65)
362
362
        cell.set_property("ellipsize", pango.ELLIPSIZE_END)
363
363
        self.summary_column = gtk.TreeViewColumn("Summary")
364
 
        self.summary_column.set_resizable(False)
365
 
        self.summary_column.set_expand(True)
 
364
        self.summary_column.set_resizable(True)
366
365
        self.summary_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
367
366
        self.summary_column.set_fixed_width(cell.get_size(self.treeview)[2])
368
367
        self.summary_column.pack_start(cell, expand=True)
373
372
        cell.set_property("width-chars", 15)
374
373
        cell.set_property("ellipsize", pango.ELLIPSIZE_END)
375
374
        self.committer_column = gtk.TreeViewColumn("Committer")
376
 
        self.committer_column.set_resizable(False)
 
375
        self.committer_column.set_resizable(True)
377
376
        self.committer_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
378
 
        self.committer_column.set_fixed_width(200)
 
377
        self.committer_column.set_fixed_width(cell.get_size(self.treeview)[2])
379
378
        self.committer_column.pack_start(cell, expand=True)
380
379
        self.committer_column.add_attribute(cell, "text", treemodel.COMMITTER)
381
380
        self.treeview.append_column(self.committer_column)
385
384
        cell.set_property("ellipsize", pango.ELLIPSIZE_END)
386
385
        self.date_column = gtk.TreeViewColumn("Date")
387
386
        self.date_column.set_visible(False)
388
 
        self.date_column.set_resizable(False)
 
387
        self.date_column.set_resizable(True)
389
388
        self.date_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
390
 
        self.date_column.set_fixed_width(130)
 
389
        self.date_column.set_fixed_width(cell.get_size(self.treeview)[2])
391
390
        self.date_column.pack_start(cell, expand=True)
392
391
        self.date_column.add_attribute(cell, "text", treemodel.TIMESTAMP)
393
392
        self.treeview.append_column(self.date_column)