[gnome-documents] searchbar: stop using gd_entry_focus_hack()



commit d5c1f35c1ad7a740fc69024308e80946c0564c25
Author: Cosimo Cecchi <cosimo endlesm com>
Date:   Wed Dec 24 17:03:12 2014 +0800

    searchbar: stop using gd_entry_focus_hack()
    
    GTK+ now has proper API for this.

 configure.ac     |    2 +-
 src/searchbar.js |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8e87f21..bf0d367 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,7 @@ AC_SUBST(LIBM)
 EVINCE_MIN_VERSION=3.13.3
 WEBKITGTK_MIN_VERSION=2.6.0
 GLIB_MIN_VERSION=2.39.3
-GTK_MIN_VERSION=3.15.0
+GTK_MIN_VERSION=3.15.3
 GOBJECT_INTROSPECTION_MIN_VERSION=1.31.6
 GDATA_MIN_VERSION=0.13.3
 GOA_MIN_VERSION=3.2.0
diff --git a/src/searchbar.js b/src/searchbar.js
index a6e1bee..8ae159b 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -260,9 +260,7 @@ const OverviewSearchbar = new Lang.Class({
             this._searchEntry.add_tag(tag);
         }
 
-        let eventDevice = Gtk.get_current_event_device();
-        if (eventDevice)
-            Gd.entry_focus_hack(this._searchEntry, eventDevice);
+        this._searchEntry.grab_focus_without_selecting();
     },
 
     _onActiveSourceChanged: function() {


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