Do not pop the error trap twice (pointed out by Sascha Silbe in #1123).
This commit is contained in:
parent
78d64031c3
commit
d3c9dc535b
@ -29,7 +29,7 @@ def _property_get_trapped(window, prop, prop_type):
|
||||
|
||||
# We just log a message
|
||||
error = gtk.gdk.error_trap_pop()
|
||||
if gtk.gdk.error_trap_pop():
|
||||
if error:
|
||||
logging.debug('Received X Error (%i) while getting '
|
||||
'a property on a window' % error)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user