avoid critical gdk error by processing events only when window visible :

Gdk-CRITICAL **: gdk_error_trap_pop_internal: assertion `trap != NULL' failed


svn: r22607
This commit is contained in:
Benny Malengier 2013-06-25 22:06:32 +00:00
parent 58fdfa622b
commit fdc766db72

View File

@ -538,7 +538,11 @@ class DisplayState(Callback):
self.window.get_window().set_cursor(self.BUSY_CURSOR)
else:
self.window.get_window().set_cursor(self.cursor)
process_pending_events()
if self.window.get_window().is_visible():
#avoid critical gdk error:
#Gdk-CRITICAL **: gdk_error_trap_pop_internal: assertion `trap != NULL' failed
#only process events if window is actually visible
process_pending_events()
def set_open_widget(self, widget):
self.widget = widget