update
svn: r7340
This commit is contained in:
parent
433710c483
commit
fbdbdc7379
@ -674,13 +674,14 @@ class ViewManager:
|
|||||||
self.notebook.set_current_page(current)
|
self.notebook.set_current_page(current)
|
||||||
|
|
||||||
def vb_clicked(self,button,index):
|
def vb_clicked(self,button,index):
|
||||||
self.vb_handlers_block()
|
if Config.get(Config.VIEW):
|
||||||
self.notebook.set_current_page(index)
|
self.vb_handlers_block()
|
||||||
# If the click is on the same view we're in,
|
self.notebook.set_current_page(index)
|
||||||
# restore the button state to active
|
# If the click is on the same view we're in,
|
||||||
if not button.get_active():
|
# restore the button state to active
|
||||||
button.set_active(True)
|
if not button.get_active():
|
||||||
self.vb_handlers_unblock()
|
button.set_active(True)
|
||||||
|
self.vb_handlers_unblock()
|
||||||
|
|
||||||
def vb_handlers_block(self):
|
def vb_handlers_block(self):
|
||||||
for ix in range(len(self.buttons)):
|
for ix in range(len(self.buttons)):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user