[node-patches] Change in ovirt-node[master]: installer: Add back button to keyboard page

fabiand at fedoraproject.org fabiand at fedoraproject.org
Fri Apr 5 13:21:32 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: installer: Add back button to keyboard page
......................................................................

installer: Add back button to keyboard page

rhbz#923123

Change-Id: If5a0779bb632240e9cc1eb09a08c5b22c7b64312
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/ovirt/node/installer/keyboard_page.py
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/36/13636/1

diff --git a/scripts/tui/src/ovirt/node/installer/keyboard_page.py b/scripts/tui/src/ovirt/node/installer/keyboard_page.py
index 503d9aa..14077fd 100644
--- a/scripts/tui/src/ovirt/node/installer/keyboard_page.py
+++ b/scripts/tui/src/ovirt/node/installer/keyboard_page.py
@@ -53,6 +53,7 @@
         self.widgets.add(ws)
         page = ui.Page("keyboard", ws)
         page.buttons = [ui.QuitButton("button.quit", "Quit"),
+                        ui.Button("button.back", "Back"),
                         ui.SaveButton("button.next", "Continue")]
         return page
 
@@ -62,7 +63,9 @@
 
     def on_merge(self, effective_changes):
         changes = self.pending_changes(False)
-        if changes.contains_any(["keyboard.layout", "button.next"]):
+        if changes.contains_any(["button.back"]):
+            self.application.ui.navigate.to_previous_plugin()
+        elif changes.contains_any(["keyboard.layout", "button.next"]):
             # Apply kbd layout directly so it takes affect on the password page
             kbd = system.Keyboard()
             self.dry_or(lambda: kbd.set_layout(changes["keyboard.layout"]))


--
To view, visit http://gerrit.ovirt.org/13636
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If5a0779bb632240e9cc1eb09a08c5b22c7b64312
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list