[PATCH 3/4] Do not lightbox any dialogs on the custom storage spoke (#875291).

Chris Lumens clumens at redhat.com
Wed Jan 9 16:33:43 UTC 2013


See the commit message for f17bc055b5661230b995b8ea82e68af2de5e9a6e.
---
 pyanaconda/ui/gui/spokes/custom.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 11c1b8c..8f38eb4 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -80,7 +80,7 @@ from pyanaconda.ui.gui.spokes.storage import StorageChecker
 from pyanaconda.ui.gui.spokes.lib.cart import SelectedDisksDialog
 from pyanaconda.ui.gui.spokes.lib.passphrase import PassphraseDialog
 from pyanaconda.ui.gui.spokes.lib.accordion import *
-from pyanaconda.ui.gui.utils import enlightbox, setViewportBackground
+from pyanaconda.ui.gui.utils import setViewportBackground
 from pyanaconda.ui.gui.categories.storage import StorageCategory
 
 from gi.repository import Gtk
@@ -164,6 +164,16 @@ feature_raid_levels = {"Performance": "raid0",
 partition_only_format_types = ["efi", "hfs+", "prepboot", "biosboot",
                                "appleboot"]
 
+# XXX: Hack, hack, hack.  For some reason displaying lightboxed dialogs on the
+# custom storage spoke means that redisplaying those dialogs later never works
+# and the UI looks frozen.  So I'm just going to override the real enlightbox
+# method here with one that does nothing.  Hopefully this will be fixed and I
+# can remove the hack.
+ at contextmanager
+def enlightbox(mainWindow, dialog):
+    dialog.set_decorated(True)
+    yield
+
 class UIStorageFilter(logging.Filter):
     def filter(self, record):
         record.name = "storage.ui"
-- 
1.7.11.2



More information about the anaconda-patches mailing list