diff options
author | Chris Lumens <clumens@redhat.com> | 2013-01-29 11:02:01 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2013-01-31 09:56:11 -0500 |
commit | 34aa48e28a841d096d39448d5860797b5d7aeb37 (patch) | |
tree | 615ae9f8058a38877c09e0faac8fcf32ad5e3651 /pyanaconda/ui | |
parent | 6addf02e8b0749b56095be9d09ca87c542ef0189 (diff) | |
download | anaconda-34aa48e28a841d096d39448d5860797b5d7aeb37.tar.gz anaconda-34aa48e28a841d096d39448d5860797b5d7aeb37.tar.xz anaconda-34aa48e28a841d096d39448d5860797b5d7aeb37.zip |
Preserve the state of the Customize... expanders on custom storage (#883134).
Also, reword the label on that expander and change a keyboard accelerator to
match.
Diffstat (limited to 'pyanaconda/ui')
-rw-r--r-- | pyanaconda/ui/gui/spokes/custom.glade | 7 | ||||
-rw-r--r-- | pyanaconda/ui/gui/spokes/custom.py | 11 | ||||
-rw-r--r-- | pyanaconda/ui/gui/spokes/lib/accordion.py | 2 |
3 files changed, 17 insertions, 3 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.glade b/pyanaconda/ui/gui/spokes/custom.glade index ba4a4c8f6..39e386691 100644 --- a/pyanaconda/ui/gui/spokes/custom.glade +++ b/pyanaconda/ui/gui/spokes/custom.glade @@ -154,7 +154,7 @@ <property name="visible">True</property> <property name="can_focus">False</property> <property name="xalign">0</property> - <property name="label" translatable="yes"><b>M_ount Point:</b></property> + <property name="label" translatable="yes"><b>Mount _Point:</b></property> <property name="use_markup">True</property> <property name="use_underline">True</property> <property name="mnemonic_widget">addMountPointEntry</property> @@ -561,7 +561,7 @@ use. Try something else?</property> <property name="visible">True</property> <property name="can_focus">False</property> <property name="xalign">0</property> - <property name="label" translatable="yes"><b>M_ount Point:</b></property> + <property name="label" translatable="yes"><b>Mount _Point:</b></property> <property name="use_markup">True</property> <property name="use_underline">True</property> <property name="mnemonic_widget">mountPointEntry</property> @@ -711,6 +711,7 @@ use. Try something else?</property> <property name="visible">True</property> <property name="can_focus">True</property> <property name="use_underline">True</property> + <signal name="activate" handler="on_customize_activated" swapped="no"/> <child> <object class="GtkGrid" id="grid3"> <property name="visible">True</property> @@ -918,7 +919,7 @@ use. Try something else?</property> <object class="GtkLabel" id="label3"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label" translatable="yes">_Customize...</property> + <property name="label" translatable="yes">Device and file system _options...</property> <property name="use_underline">True</property> </object> </child> diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index a590b6f58..e9fc86be2 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -1426,6 +1426,11 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): sizeSpinner = self.builder.get_object("sizeSpinner") typeCombo = self.builder.get_object("deviceTypeCombo") fsCombo = self.builder.get_object("fileSystemTypeCombo") + expander = self.builder.get_object("customizeExpander") + + # We want to preserve the state of the customize expander so that it's + # open should you open it and then look at some other device instead. + expander.set_expanded(selector.customizeIsOpen) device = selector._device if device.type == "luks/dm-crypt": @@ -1661,6 +1666,12 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): NormalSpoke.on_back_clicked(self, button) + def on_customize_activated(self, expander): + if not self._current_selector: + return + + self._current_selector.customizeIsOpen = not self._current_selector.customizeIsOpen + def on_add_clicked(self, button): self._save_right_side(self._current_selector) diff --git a/pyanaconda/ui/gui/spokes/lib/accordion.py b/pyanaconda/ui/gui/spokes/lib/accordion.py index 7a42ffd7f..af5c2189a 100644 --- a/pyanaconda/ui/gui/spokes/lib/accordion.py +++ b/pyanaconda/ui/gui/spokes/lib/accordion.py @@ -155,6 +155,7 @@ class Page(Gtk.Box): selector._device = None selector._root = None + selector.customizeIsOpen = False if self._mountpointType(mountpoint) == DATA_DEVICE: self._dataBox.add(selector) @@ -210,6 +211,7 @@ class UnknownPage(Page): selector._device = None selector._root = None + selector.customizeIsOpen = False self._members.append(selector) self.add(selector) |