I think this fixes most of the strangeness with the clicked splitter not moving properly, but I think it can still be triggered occasionally. I'm stumped.

This commit is contained in:
Stephen Boddy 2012-06-27 16:58:56 +02:00
parent d4b61768dc
commit 7354660788
1 changed files with 6 additions and 4 deletions

View File

@ -126,10 +126,12 @@ class Paned(Container):
else:
recurse_down=False
self.do_redistribute(recurse_up, recurse_down)
while gtk.events_pending():
gtk.main_iteration_do(False)
self.do_redistribute(recurse_up, recurse_down)
# FIXME: These idle events are creating a lot of weird issues
for i in range(3):
while gtk.events_pending():
gtk.main_iteration_do(False)
self.do_redistribute(recurse_up, recurse_down)
return True
else:
return False