summaryrefslogtreecommitdiffstats
path: root/pyanaconda/ui
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-10-02 15:31:56 -0500
committerDavid Lehman <dlehman@redhat.com>2012-10-04 20:33:51 -0500
commit215fd85abec9ff2c8d15c361c90086474d2d9cf6 (patch)
tree31fcff29c903bb509f1129b3d4e77046d3cfe77f /pyanaconda/ui
parentcd82e5c0c295dfc76d8628ad114dbaaffa466286 (diff)
downloadanaconda-215fd85abec9ff2c8d15c361c90086474d2d9cf6.tar.gz
anaconda-215fd85abec9ff2c8d15c361c90086474d2d9cf6.tar.xz
anaconda-215fd85abec9ff2c8d15c361c90086474d2d9cf6.zip
Add an apply button to the device/mountpoint configuration options.
Diffstat (limited to 'pyanaconda/ui')
-rw-r--r--pyanaconda/ui/gui/spokes/custom.glade53
-rw-r--r--pyanaconda/ui/gui/spokes/custom.py4
2 files changed, 49 insertions, 8 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.glade b/pyanaconda/ui/gui/spokes/custom.glade
index 242bf4b28..8ccae647c 100644
--- a/pyanaconda/ui/gui/spokes/custom.glade
+++ b/pyanaconda/ui/gui/spokes/custom.glade
@@ -581,12 +581,6 @@ you'll be able to view their details here.</property>
</packing>
</child>
<child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
<object class="GtkEntry" id="labelEntry">
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -618,11 +612,17 @@ you'll be able to view their details here.</property>
<property name="height">1</property>
</packing>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="position">4</property>
+ <property name="position">2</property>
</packing>
</child>
<child>
@@ -1199,7 +1199,44 @@ you'll be able to view their details here.</property>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="position">5</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box10">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <object class="GtkButton" id="applyButton">
+ <property name="label" translatable="yes">_Apply Changes</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_underline">True</property>
+ <signal name="clicked" handler="on_apply_clicked" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">end</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">4</property>
</packing>
</child>
</object>
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index cc4ec9168..e884504be 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1702,3 +1702,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
with enlightbox(self.window, dlg):
dlg.run()
dlg.destroy()
+
+ def on_apply_clicked(self, button):
+ """ call _save_right_side, then, perhaps, populate_right_side. """
+ self._save_right_side(self._current_selector)