/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 revisionview.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:
305
305
        )
306
306
    }
307
307
 
308
 
    def __init__(self, branch=None):
 
308
    def __init__(self, branch=None, repository=None):
309
309
        gtk.Notebook.__init__(self)
310
310
 
311
311
        self._revision = None
312
312
        self._branch = branch
 
313
        if branch is not None:
 
314
            self._repository = branch.repository
 
315
        else:
 
316
            self._repository = repository
313
317
 
314
318
        self._create_general()
315
319
        self._create_relations()
513
517
 
514
518
            button = gtk.Button(revid)
515
519
            button.connect("clicked",
516
 
                    lambda w, r: self.set_revision(self._branch.repository.get_revision(r)), revid)
 
520
                    lambda w, r: self.set_revision(self._repository.get_revision(r)), revid)
517
521
            button.set_use_underline(False)
518
522
            hbox.pack_start(button, expand=False, fill=True)
519
523
            button.show()
535
539
        vbox.show()
536
540
 
537
541
    def _create_signature(self):
538
 
        self.signature_table = SignatureTab(self._branch.repository)
 
542
        self.signature_table = SignatureTab(self._repository)
539
543
        self.append_page(self.signature_table, tab_label=gtk.Label('Signature'))
540
544
        self.connect_after('notify::revision', self._update_signature)
541
545