[gedit/gnome-3-12] [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/gnome-3-12] [quick open] Defer popup destruction to avoid input manager crash
- Date: Fri, 3 Oct 2014 15:24:22 +0000 (UTC)
commit 9c899ecceff1374642ff3633af53a6007324a300
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 17c60f4..12916dd 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]