[gnome-games] search-bar: Add focus_entry()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] search-bar: Add focus_entry()
- Date: Tue, 8 Jan 2019 10:11:16 +0000 (UTC)
commit f0ea32b7b8c73e6fecc887306cbf08b997c4f52e
Author: Yetizone <andreii lisita gmail com>
Date: Tue Jan 8 11:29:24 2019 +0200
search-bar: Add focus_entry()
Needed to regrab search-bar focus after selecting a row from the sidebar-view
src/ui/search-bar.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/ui/search-bar.vala b/src/ui/search-bar.vala
index 1b45ce44..2d663210 100644
--- a/src/ui/search-bar.vala
+++ b/src/ui/search-bar.vala
@@ -20,4 +20,8 @@ private class Games.SearchBar : Hdy.SearchBar {
private void on_search_activated () {
text = entry.text;
}
+
+ public void focus_entry () {
+ entry.grab_focus_without_selecting ();
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]