[gnome-boxes] wizard-window: Escape view on 'Esc' key
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] wizard-window: Escape view on 'Esc' key
- Date: Mon, 13 Apr 2015 16:12:15 +0000 (UTC)
commit 66f7881183f14be2cffebb754d494f8d941f8ec8
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Apr 13 17:08:22 2015 +0100
wizard-window: Escape view on 'Esc' key
Instead of always cancelling the wizard, revert to main view if 'Esc'
key is hit in any non-main view.
This fixes the issue of wizard remaining in seconardary views when
cancelled through 'Esc' key.
https://bugzilla.gnome.org/show_bug.cgi?id=747561
src/wizard-window.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/wizard-window.vala b/src/wizard-window.vala
index 0c8035b..308a191 100644
--- a/src/wizard-window.vala
+++ b/src/wizard-window.vala
@@ -133,7 +133,11 @@ private class Boxes.WizardWindow : Gtk.Window, Boxes.UI {
topbar.click_forward_button ();
return true;
} else if (event.keyval == Gdk.Key.Escape) { // ESC -> cancel
- topbar.cancel_btn.clicked ();
+ if (page == WizardWindowPage.MAIN)
+ topbar.cancel_btn.clicked ();
+ else
+ page = WizardWindowPage.MAIN;
+
}
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]