[gnome-boxes] wizard: Don't set page during UI setup



commit 682bd4668e71a45d829d5a24d708392647f442b8
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Mar 14 00:18:36 2014 +0000

    wizard: Don't set page during UI setup
    
    Doing so results in us trying to grab focus on continue button and since
    that button is not yet realized, it results in key events failing to
    call our handler and throwing criticals on console, until user goes to
    wizard (and getting continue button, realized).
    
    Not able to handle key events meant that all our custom keyboard
    shortcuts (e.g Ctrl+q) didn't work until user went to wizard.
    
    This initialization was redundant anyway since its always done on UI
    state change to wizard.

 src/wizard.vala |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index a1c69a0..df2f1aa 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -552,8 +552,6 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
                 App.window.notificationbar.display_error (_("Box creation failed"));
             });
         });
-
-        page = WizardPage.INTRODUCTION;
     }
 
     public void open_with_uri (string uri, bool skip_review_for_live = true) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]