GeoView : bug 3517 : filter in menu

svn: r14578
This commit is contained in:
Serge Noiraud 2010-03-02 11:56:38 +00:00
parent 027b333860
commit 5c11bc6f09

View File

@ -1025,6 +1025,7 @@ class GeoView(HtmlView):
<separator/> <separator/>
<menuitem action="AddPlaceMenu"/> <menuitem action="AddPlaceMenu"/>
<menuitem action="LinkPlaceMenu"/> <menuitem action="LinkPlaceMenu"/>
<menuitem action="FilterEdit"/>
</menu> </menu>
</menubar> </menubar>
<toolbar name="ToolBar"> <toolbar name="ToolBar">
@ -1092,9 +1093,8 @@ class GeoView(HtmlView):
self._add_action('EventMapsMenu', 'geo-show-event', _('_Event'), self._add_action('EventMapsMenu', 'geo-show-event', _('_Event'),
callback=self._event_places, callback=self._event_places,
tip=_("Attempt to view places connected to all events.")) tip=_("Attempt to view places connected to all events."))
self._add_toggle_action('Filter', None, _('_Filter Sidebar'), self._add_toggle_action('FilterEdit', None, _('_Filter Sidebar'),
callback=self.filter_toggle_action, callback=self.filter_toggle_action)
value=config.get('interface.filter'))
config.connect('interface.filter', self.filter_toggle) config.connect('interface.filter', self.filter_toggle)
def go_back(self, button): # pylint: disable-msg=W0613 def go_back(self, button): # pylint: disable-msg=W0613
@ -2252,7 +2252,6 @@ class GeoView(HtmlView):
self.filter.hide() self.filter.hide()
active = False active = False
config.set('interface.filter', active) config.set('interface.filter', active)
self.build_tree()
def filter_clicked(self): def filter_clicked(self):
""" """