/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 annotate/config.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:
51
51
                                     configspec=gannotate_configspec)
52
52
        self.window = window
53
53
        self.pane = window.pane
54
 
        self.span_selector = window.span_selector
55
54
        
56
55
        self.initial_comment = ["gannotate plugin configuration"]
57
56
        self['window']['width'] = 750
77
76
        if self["window"]["maximized"]:
78
77
            self.window.maximize()
79
78
 
80
 
        self.span_selector.max_custom_spans =\
81
 
                self["spans"]["max_custom_spans"]
82
 
 
83
79
        # XXX Don't know how to set an empty list as default in
84
80
        # gannotate_configspec.
85
 
        try:
86
 
            for span in self["spans"]["custom_spans"]:
87
 
                self.span_selector.add_custom_span(span)
88
 
        except KeyError:
89
 
            pass
90
 
 
91
81
    def _connect_signals(self):
92
82
        self.window.connect("destroy", self._write)
93
83
        self.window.connect("configure-event", self._save_window_props)
94
84
        self.window.connect("window-state-event", self._save_window_props)
95
85
        self.pane.connect("notify", self._save_pane_props)
96
 
        self.span_selector.connect("custom-span-added",
97
 
                                   self._save_custom_spans)
98
86
 
99
87
    def _save_window_props(self, w, e, *args):
100
88
        if e.window.get_state() & gtk.gdk.WINDOW_STATE_MAXIMIZED: