* src/ViewManager.py: #1559, CTRL+N/P also if no sidebar

2008-02-19 Benny Malengier <benny.malengier@gramps-project.org>


svn: r10072
This commit is contained in:
Benny Malengier 2008-02-19 22:16:13 +00:00
parent c307c61670
commit 977c9d8013
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2008-02-19 Benny Malengier <benny.malengier@gramps-project.org>
* src/ViewManager.py: #1559, CTRL+N/P also if no sidebar
2008-02-19 Benny Malengier <benny.malengier@gramps-project.org>
* src/DbManager.py: #1725, ENTER should behave like double click

View File

@ -511,7 +511,11 @@ class ViewManager:
new_page = 0
else:
new_page = current_page + 1
if self.show_sidebar:
#cause a click signal
self.buttons[new_page].set_active(True)
else:
self.notebook.set_current_page(new_page)
def __prev_view(self, action):
"""
@ -524,7 +528,11 @@ class ViewManager:
new_page = len(self.pages)-1
else:
new_page = current_page - 1
if self.show_sidebar:
#cause a click signal
self.buttons[new_page].set_active(True)
else:
self.notebook.set_current_page(new_page)
def init_interface(self):
"""
@ -748,10 +756,12 @@ class ViewManager:
self.ebox.show()
self.notebook.set_show_tabs(False)
Config.set(Config.VIEW, True)
self.show_sidebar = True
else:
self.ebox.hide()
self.notebook.set_show_tabs(True)
Config.set(Config.VIEW, False)
self.show_sidebar = False
Config.sync()
def toolbar_toggle(self, obj):