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:
Cédric Krier committed 2012-05-05 09:30:41 +02:00
1 parent 6388420212
commit 65dde64720
1 file changed
+1
+1
View File
@@ -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)