[PATCH 2/3] Do not lightbox the Add Mountpoint dialog (#875291).
Chris Lumens
clumens at redhat.com
Mon Jan 7 20:26:49 UTC 2013
For some reason, lightboxing this dialog means if you go back into the custom
partitioning screen, all other dialogs will be displayed hidden but still
take focus. I can't figure out what's going on, so just disabling this
lightbox for now seems a reasonable workaround.
---
pyanaconda/ui/gui/spokes/custom.glade | 1 -
pyanaconda/ui/gui/spokes/custom.py | 13 ++++++-------
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.glade b/pyanaconda/ui/gui/spokes/custom.glade
index 72d06ca..aadcd57 100644
--- a/pyanaconda/ui/gui/spokes/custom.glade
+++ b/pyanaconda/ui/gui/spokes/custom.glade
@@ -76,7 +76,6 @@
<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 8552f35..74e0717 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1758,14 +1758,13 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
dialog = AddDialog(self.data,
mountpoints=self.__storage.mountpoints.keys())
- with enlightbox(self.window, dialog.window):
- dialog.refresh()
- rc = dialog.run()
+ 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