[gitg] Avoid to grab focus on search bar with selected text



commit c5114edca0dfcda9c0b4445b3c18553b30d701c7
Author: Alberto Fanjul <albertofanjul gmail com>
Date:   Sun Apr 21 00:54:39 2019 +0200

    Avoid to grab focus on search bar with selected text

 gitg/gitg-window.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 47fd2d91..42c489d7 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -241,7 +241,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
 
                if (button.get_active())
                {
-                       d_search_entry.grab_focus();
+                       d_search_entry.grab_focus_without_selecting();
 
                        d_search_entry.text = searchable.search_text;
                        searchable.search_visible = true;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]