* src/DataViews/_PersonView.py: catch config callback for sidebar
* src/ViewManager.py: catch config callback for sidebar * src/PageView.py: catch config callback for sidebar svn: r7015
This commit is contained in:
@@ -123,6 +123,7 @@ uidefault = '''<ui>
|
||||
<menu action="ViewMenu">
|
||||
<menuitem action="Sidebar"/>
|
||||
<menuitem action="Toolbar"/>
|
||||
<menuitem action="Filter"/>
|
||||
<separator/>
|
||||
</menu>
|
||||
<menu action="GoMenu">
|
||||
@@ -374,6 +375,8 @@ class ViewManager:
|
||||
self.show_sidebar ),
|
||||
('Toolbar', None, _('_Toolbar'), None, None, self.toolbar_toggle,
|
||||
self.show_toolbar ),
|
||||
('Filter', None, _('Show Sidebar _Filter'), None, None, self.filter_toggle,
|
||||
self.show_toolbar ),
|
||||
]
|
||||
|
||||
self._undo_action_list = [
|
||||
@@ -576,6 +579,10 @@ class ViewManager:
|
||||
Config.set(Config.TOOLBAR_ON, False)
|
||||
Config.sync()
|
||||
|
||||
def filter_toggle(self, obj):
|
||||
Config.set(Config.FILTER, obj.get_active())
|
||||
Config.sync()
|
||||
|
||||
def register_view(self, view):
|
||||
self.views.append(view)
|
||||
|
||||
|
Reference in New Issue
Block a user