[four-in-a-row/arnaudb/wip/gtk4] Give focus to view after hint.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row/arnaudb/wip/gtk4] Give focus to view after hint.
- Date: Mon, 27 Apr 2020 17:59:30 +0000 (UTC)
commit 854ecfe1c899c9b382e9a3c4f4872eea85a1978f
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Apr 27 19:59:07 2020 +0200
Give focus to view after hint.
src/four-in-a-row.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index 3a6495b..00cfafe 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -921,6 +921,8 @@ private class FourInARow : Gtk.Application
window.allow_undo (false);
else
window.allow_undo (true);
+
+ game_board_view.grab_focus ();
}
private inline void on_game_undo ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]