[PATCH 7/9] Add an apply button to the device/mountpoint configuration options.

David Lehman dlehman at redhat.com
Thu Oct 4 14:47:17 UTC 2012


---
 pyanaconda/ui/gui/spokes/custom.glade |   53 ++++++++++++++++++++++++++++-----
 pyanaconda/ui/gui/spokes/custom.py    |    4 ++
 2 files changed, 49 insertions(+), 8 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.glade b/pyanaconda/ui/gui/spokes/custom.glade
index 242bf4b..8ccae64 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 cc4ec91..e884504 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)
-- 
1.7.7.6



More information about the anaconda-patches mailing list