/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-06-10 15:25:47 UTC
  • mto: This revision was merged to the branch mainline in revision 504.
  • Revision ID: v.ladeuil+lp@free.fr-20080610152547-dwmil1p8pd0mfpnl
Fix third failing test (thanks to jam).

* tests/test_commit.py:
(TestPendingRevisions.test_pending_revisions_multi_merge): Fix
provided by jam: bzr we now filter the pending merges so that only
the 'heads()' are included. We just ensure that the pending merges
contain the unique tips for the ancestries.

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: