gtk: Fix VTE focus grabbing
commit9d677e1c2fa479336fb7a2b90aea78c10d037e98
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 26 Apr 2015 19:04:20 +0000 (26 21:04 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 27 Apr 2015 09:00:07 +0000 (27 11:00 +0200)
treed34a0cdc3308cad93532a48c0d8c94b8ced926a1
parent779ce88fbd3f977112bc77ccb028b0ace762105e
gtk: Fix VTE focus grabbing

At least on GTK2, the VTE terminal has to be specified as target of
gtk_widget_grab_focus. Otherwise, switching from one VTE terminal to
another causes the focus to get lost.

CC: John Snow <jsnow@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
[ kraxel: fixed build with CONFIG_VTE=n ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk.c