diff options
author | David Cantrell <dcantrell@redhat.com> | 2006-05-16 14:46:25 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2006-05-16 14:46:25 +0000 |
commit | 46d4b5a1a19b3fcd72826ec36906e2402569eb73 (patch) | |
tree | 3192a8ad26b5340c198f616205ad54c679b799a3 /gui.py | |
parent | 59cb0f268cc03ff18ad2aa78b9ff2c0ce4318524 (diff) | |
download | anaconda-46d4b5a1a19b3fcd72826ec36906e2402569eb73.tar.gz anaconda-46d4b5a1a19b3fcd72826ec36906e2402569eb73.tar.xz anaconda-46d4b5a1a19b3fcd72826ec36906e2402569eb73.zip |
* gui.py: Remove PYGTK_DISABLE_THREADS environment variable. Call
gtk.gdk.threads_init() early on. Wrap gtk.main() in threads_enter
and threads_leave calls.
* htmlbuffer.py: Wrap gtk.main() in threads_enter and threads_leave
calls.
* iw/checklist.py: Likewise.
* iw/datacombo.py: Likewise.
* iw/ipwidget.py: Likewise.
* iw/pixmapRadioButtonGroup_gui.py: Likewise.
Diffstat (limited to 'gui.py')
-rwxr-xr-x | gui.py | 27 |
1 files changed, 8 insertions, 19 deletions
@@ -16,7 +16,6 @@ import os from flags import flags -os.environ["PYGTK_DISABLE_THREADS"] = "1" os.environ["GNOME_DISABLE_CRASH_DIALOG"] = "1" # we only want to enable the accessibility stuff if requested for now... @@ -51,6 +50,8 @@ from release_notes import ReleaseNotesViewer import logging log = logging.getLogger("anaconda") +gtk.gdk.threads_init() + isys.bind_textdomain_codeset("redhat-dist", "UTF-8") StayOnScreen = "stayOnScreen" @@ -942,27 +943,13 @@ class InstallControlWindow: self.setScreen () def releaseNotesButtonClicked (self, widget): - # we make cursor busy, on assumption when viewer app runs it will - # make it normal setCursorToBusy() - - ## this is the child executing the release notes viewer - #child = os.fork() - #if (child == 0): - # # close unneeded fd's - # for i in range(3,255): - # try: - # os.close(i) - # except: - # pass - # - # win = ReleaseNotesViewer(self.id, self.dispatch) - # win.view() - win = ReleaseNotesViewer(self.id, self.dispatch) - + win = ReleaseNotesViewer() + win.setId(self.id) + win.setDispatch(self.dispatch) + win.start() ## desensitize button bar at bottom of screen #self.mainxml.get_widget("buttonBar").set_sensitive(False) - setCursorToNormal() def helpClicked (self, *args): @@ -1204,7 +1191,9 @@ class InstallControlWindow: def run (self, runres): self.setup_window(runres) + gtk.threads_enter() gtk.main() + gtk.threads_leave() class InstallControlState: def __init__ (self, cw): |