[PATCH 2/4] Revert "Do not lightbox the Add Mountpoint dialog (#875291)."
Chris Lumens
clumens at redhat.com
Wed Jan 9 16:33:42 UTC 2013
This reverts commit f17bc055b5661230b995b8ea82e68af2de5e9a6e. I have a more
thorough fix for this screen coming.
---
pyanaconda/ui/gui/spokes/custom.glade | 1 +
pyanaconda/ui/gui/spokes/custom.py | 13 +++++++------
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.glade b/pyanaconda/ui/gui/spokes/custom.glade
index aadcd57..72d06ca 100644
--- a/pyanaconda/ui/gui/spokes/custom.glade
+++ b/pyanaconda/ui/gui/spokes/custom.glade
@@ -76,6 +76,7 @@
<property name="can_focus">False</property>
<property name="border_width">5</property>
<property name="type_hint">dialog</property>
+ <property name="decorated">False</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property>
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 91c73d7..11c1b8c 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1764,13 +1764,14 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
dialog = AddDialog(self.data,
mountpoints=self.__storage.mountpoints.keys())
- dialog.refresh()
- rc = dialog.run()
+ with enlightbox(self.window, dialog.window):
+ dialog.refresh()
+ rc = dialog.run()
- if rc != 1:
- # user cancel
- dialog.window.destroy()
- return
+ if rc != 1:
+ # user cancel
+ dialog.window.destroy()
+ return
# create a device of the default type, using any disks, with an
# appropriate fstype and mountpoint
--
1.7.11.2
More information about the anaconda-patches
mailing list