* 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:
parent
c307c61670
commit
977c9d8013
@ -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>
|
2008-02-19 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
* src/DbManager.py: #1725, ENTER should behave like double click
|
* src/DbManager.py: #1725, ENTER should behave like double click
|
||||||
|
|
||||||
|
@ -511,7 +511,11 @@ class ViewManager:
|
|||||||
new_page = 0
|
new_page = 0
|
||||||
else:
|
else:
|
||||||
new_page = current_page + 1
|
new_page = current_page + 1
|
||||||
|
if self.show_sidebar:
|
||||||
|
#cause a click signal
|
||||||
self.buttons[new_page].set_active(True)
|
self.buttons[new_page].set_active(True)
|
||||||
|
else:
|
||||||
|
self.notebook.set_current_page(new_page)
|
||||||
|
|
||||||
def __prev_view(self, action):
|
def __prev_view(self, action):
|
||||||
"""
|
"""
|
||||||
@ -524,7 +528,11 @@ class ViewManager:
|
|||||||
new_page = len(self.pages)-1
|
new_page = len(self.pages)-1
|
||||||
else:
|
else:
|
||||||
new_page = current_page - 1
|
new_page = current_page - 1
|
||||||
|
if self.show_sidebar:
|
||||||
|
#cause a click signal
|
||||||
self.buttons[new_page].set_active(True)
|
self.buttons[new_page].set_active(True)
|
||||||
|
else:
|
||||||
|
self.notebook.set_current_page(new_page)
|
||||||
|
|
||||||
def init_interface(self):
|
def init_interface(self):
|
||||||
"""
|
"""
|
||||||
@ -748,10 +756,12 @@ class ViewManager:
|
|||||||
self.ebox.show()
|
self.ebox.show()
|
||||||
self.notebook.set_show_tabs(False)
|
self.notebook.set_show_tabs(False)
|
||||||
Config.set(Config.VIEW, True)
|
Config.set(Config.VIEW, True)
|
||||||
|
self.show_sidebar = True
|
||||||
else:
|
else:
|
||||||
self.ebox.hide()
|
self.ebox.hide()
|
||||||
self.notebook.set_show_tabs(True)
|
self.notebook.set_show_tabs(True)
|
||||||
Config.set(Config.VIEW, False)
|
Config.set(Config.VIEW, False)
|
||||||
|
self.show_sidebar = False
|
||||||
Config.sync()
|
Config.sync()
|
||||||
|
|
||||||
def toolbar_toggle(self, obj):
|
def toolbar_toggle(self, obj):
|
||||||
|
Loading…
Reference in New Issue
Block a user