Improve hack of glitch in position of widgets in notebook
By calling display when switching tabs, it loose the value of focused widget because value is reset before the focus-out is proceed. issue2571 review353001
This commit is contained in:
1 parent
6388420212
commit
65dde64720
1 file changed
+1
@@ -30,6 +30,7 @@ class ViewForm(ParserView):
|
||||
for notebook in notebooks:
|
||||
def switch(notebook, page, page_num):
|
||||
if page_num not in display_done.setdefault(notebook, []):
|
||||
notebook.grab_focus()
|
||||
display_done[notebook].append(page_num)
|
||||
self.display()
|
||||
notebook.connect('switch-page', switch)
|
||||
|
||||
Reference in new issue
Block a user