[PATCH 2/5] Initialize gdk threading as well.
Chris Lumens
clumens at redhat.com
Mon Sep 24 19:27:24 UTC 2012
This is required if we actually want to do UI stuff from more than one
thread. We've avoided this in large part up to now by using the communication
queues, but it's not going to be possible to avoid forever. Error reporting
in particular requires this.
---
pyanaconda/__init__.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pyanaconda/__init__.py b/pyanaconda/__init__.py
index 5db8043..8948fdb 100644
--- a/pyanaconda/__init__.py
+++ b/pyanaconda/__init__.py
@@ -204,6 +204,9 @@ class Anaconda(object):
raise RuntimeError, "Second attempt to initialize the InstallInterface"
if self.displayMode == 'g':
+ from gi.repository import Gdk
+ Gdk.threads_init()
+
from pyanaconda.ui.gui import GraphicalUserInterface
self._intf = GraphicalUserInterface(self.storage, self.payload,
self.instClass)
--
1.7.11.2
More information about the anaconda-patches
mailing list