[gedit] [quick open] Defer popup destruction to avoid input manager crash
- From: Adam Dingle <adamd src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] [quick open] Defer popup destruction to avoid input manager crash
- Date: Fri, 3 Oct 2014 15:23:02 +0000 (UTC)
commit 634f66b43779c00631903865dd2c93f4c58e64dc
Author: Adam Dingle <adam medovina org>
Date: Wed Oct 1 10:45:58 2014 -0400
[quick open] Defer popup destruction to avoid input manager crash
https://bugzilla.gnome.org/show_bug.cgi?id=737711
plugins/quickopen/quickopen/popup.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/quickopen/quickopen/popup.py b/plugins/quickopen/quickopen/popup.py
index 2ccb53f..c2c16f8 100644
--- a/plugins/quickopen/quickopen/popup.py
+++ b/plugins/quickopen/quickopen/popup.py
@@ -519,13 +519,15 @@ class Popup(Gtk.Dialog):
return True
if rows and ret:
- self.destroy()
+ # We destroy the popup in an idle callback to work around a crash that happens with
+ # GTK_IM_MODULE=xim. See https://bugzilla.gnome.org/show_bug.cgi?id=737711 .
+ GLib.idle_add(self.destroy)
if not rows:
gfile = self._direct_file()
if gfile and self._handler(gfile):
- self.destroy()
+ GLib.idle_add(self.destroy)
else:
ret = False
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]