[accerciser] Fixed crash when selecting item under pointer. Workaround for pygtk gdk bug (http://bugzilla.gnome.o
- From: Eitan Isaacson <eitani src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [accerciser] Fixed crash when selecting item under pointer. Workaround for pygtk gdk bug (http://bugzilla.gnome.o
- Date: Mon, 31 Aug 2009 23:49:03 +0000 (UTC)
commit c3e7d1d0b712ed012e4ff5ebedcb14a2c4852617
Author: Eitan Isaacson <eitan ascender com>
Date: Mon Aug 31 16:28:03 2009 -0700
Fixed crash when selecting item under pointer. Workaround for pygtk gdk bug (http://bugzilla.gnome.org/show_bug.cgi?id=593732).
plugins/quick_select.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/quick_select.py b/plugins/quick_select.py
index 519a30b..b70605e 100644
--- a/plugins/quick_select.py
+++ b/plugins/quick_select.py
@@ -70,6 +70,7 @@ class QuickSelect(Plugin):
'''
display = gtk.gdk.Display(gtk.gdk.get_display())
screen, x, y, flags = display.get_pointer()
+ del screen # A workaround http://bugzilla.gnome.org/show_bug.cgi?id=593732
# First check if the currently selected accessible has the pointer over it.
# This is an optimization: Instead of searching for
@@ -106,6 +107,7 @@ class QuickSelect(Plugin):
else:
if z_order > top_window[1]:
top_window = (acc, z_order)
+
if top_window[0]:
self.node.update(top_window[0])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]