[gtranslator/gtk4] Focus search entry on search bar show
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator/gtk4] Focus search entry on search bar show
- Date: Wed, 7 Sep 2022 15:45:05 +0000 (UTC)
commit 0dbd36a8754f405e4309f02fd4309431418dec94
Author: Daniel GarcĂa Moreno <dani danigm net>
Date: Wed Sep 7 17:44:48 2022 +0200
Focus search entry on search bar show
src/gtr-tab.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/gtr-tab.c b/src/gtr-tab.c
index b16e0c89..b5f8d3cf 100644
--- a/src/gtr-tab.c
+++ b/src/gtr-tab.c
@@ -199,6 +199,8 @@ gtr_tab_show_hide_search_bar (GtrTab *tab, gboolean show)
priv = gtr_tab_get_instance_private (tab);
gtk_search_bar_set_search_mode (priv->search_bar, show);
+ if (show)
+ gtr_tab_focus_search_bar (tab);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]