[gnome-boxes] Always grab focus when switching to display mode



commit 641dab8bdaf98e2c6eff24157ffd80b008e02d0d
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Jan 28 14:17:37 2013 +0100

    Always grab focus when switching to display mode
    
    This helps for instance when going back from properties mode where
    otherwise the focus would be on the button you used to go to
    the properties mode. This is almost never what you want, as you expect
    to be able to start typing into the VM when it appears.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688323

 src/display-page.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/display-page.vala b/src/display-page.vala
index 9fd9ed8..0b77ffc 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -255,6 +255,7 @@ private class Boxes.DisplayPage: GLib.Object {
         });
 
         show ();
+        widget.grab_focus ();
     }
 
     public Widget? remove_display () {



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