summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2012-11-15 17:14:39 -0500
committerChris Lumens <clumens@redhat.com>2012-11-16 10:20:30 -0500
commit65478053e5d6323c1e859d57ea428833ec267d79 (patch)
tree871e8c9dcbf49921861925d7920de9af349c84d7
parenta47cca670175f7105cd61a2d0c401b53f5757157 (diff)
downloadanaconda-65478053e5d6323c1e859d57ea428833ec267d79.tar.gz
anaconda-65478053e5d6323c1e859d57ea428833ec267d79.tar.xz
anaconda-65478053e5d6323c1e859d57ea428833ec267d79.zip
More changes to leave the spoke via a glib idle call, not calling directly.
These may not fix anything we've got right now, but it's the more correct way to do it.
-rw-r--r--pyanaconda/ui/gui/spokes/storage.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index c5b7fcfa3..8dc6b7b8a 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -47,7 +47,7 @@ from pyanaconda.ui.gui.spokes.lib.passphrase import PassphraseDialog
from pyanaconda.ui.gui.spokes.lib.detailederror import DetailedErrorDialog
from pyanaconda.ui.gui.spokes.lib.resize import ResizeDialog
from pyanaconda.ui.gui.categories.storage import StorageCategory
-from pyanaconda.ui.gui.utils import enlightbox, gtk_thread_wait
+from pyanaconda.ui.gui.utils import enlightbox, gtk_call_once, gtk_thread_wait
from pyanaconda.kickstart import doKickstartStorage
from pyanaconda.storage.size import Size
@@ -706,14 +706,14 @@ class StorageSpoke(NormalSpoke, StorageChecker):
self.passphrase = dialog.passphrase
- self.on_back_clicked(self.window)
+ gtk_call_once(self.window.emit, "button-clicked")
elif rc == dialog.RESPONSE_CANCEL:
# stay on this spoke
print "user chose to continue disk selection"
elif rc == dialog.RESPONSE_MODIFY_SW:
# go to software spoke
self.skipTo = "SoftwareSelectionSpoke"
- self.on_back_clicked(self.window)
+ gtk_call_once(self.window.emit, "button-clicked")
elif rc == dialog.RESPONSE_RECLAIM:
self.autopart = not dialog.custom
self.autoPartType = dialog.autoPartType
@@ -725,7 +725,7 @@ class StorageSpoke(NormalSpoke, StorageChecker):
if dialog.custom:
self.skipTo = "CustomPartitioningSpoke"
- self.on_back_clicked(self.window)
+ gtk_call_once(self.window.emit, "button-clicked")
else:
if self.encrypted:
dialog = PassphraseDialog(self.data)
@@ -736,7 +736,7 @@ class StorageSpoke(NormalSpoke, StorageChecker):
self.passphrase = dialog.passphrase
self.apply()
- GLib.idle_add(self._show_resize_dialog, disks)
+ gtk_call_once(self._show_resize_dialog, disks)
elif rc == dialog.RESPONSE_QUIT:
raise SystemExit("user-selected exit")
@@ -747,8 +747,7 @@ class StorageSpoke(NormalSpoke, StorageChecker):
# resizeDialog handles okay/cancel on its own, so we can throw out the
# return value.
self.run_lightbox_dialog(resizeDialog)
- self.window.emit("button-clicked")
- return False
+ gtk_call_once(self.window.emit, "button-clicked")
def on_add_disk_clicked(self, button):
print "ADD DISK CLICKED"