summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-01-28 14:17:37 +0100
committerAlexander Larsson <alexl@redhat.com>2013-01-29 09:37:52 +0100
commit641dab8bdaf98e2c6eff24157ffd80b008e02d0d (patch)
tree292d25a57b0c3c173e71f617697aca80528e2712
parenta32e31ebd1b23481476b0e8678b532c9cc27d33a (diff)
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
-rw-r--r--src/display-page.vala1
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 () {