[gedit/gnome-3-10] [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-10] [quick open] Defer popup destruction to avoid input manager crash
- Date: Fri, 3 Oct 2014 15:25:07 +0000 (UTC)
commit 193ddc15f2c28746aeca293b17465599c1a4dee2
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 f0c2669..35e799c 100644
--- a/plugins/quickopen/quickopen/popup.py
+++ b/plugins/quickopen/quickopen/popup.py
@@ -511,13 +511,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]