[gnome-photos] overview-searchbar: Stop using gd_entry_focus_hack
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] overview-searchbar: Stop using gd_entry_focus_hack
- Date: Fri, 12 May 2017 15:45:29 +0000 (UTC)
commit edd048caeb26e26d033366eb53a87c993e9ee548
Author: Debarshi Ray <debarshir gnome org>
Date: Fri May 12 17:37:09 2017 +0200
overview-searchbar: Stop using gd_entry_focus_hack
GTK+ now has proper API for this.
Original patch from Cosimo Cecchi for gnome-documents.
https://bugzilla.gnome.org/show_bug.cgi?id=776082
src/photos-overview-searchbar.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-overview-searchbar.c b/src/photos-overview-searchbar.c
index ffc851c..ad2815a 100644
--- a/src/photos-overview-searchbar.c
+++ b/src/photos-overview-searchbar.c
@@ -69,7 +69,6 @@ photos_overview_searchbar_active_changed (PhotosOverviewSearchbar *self,
PhotosBaseManager *mngr,
GdTaggedEntryTag *tag)
{
- GdkDevice *event_device;
GObject *object;
const gchar *id;
gchar *name;
@@ -86,10 +85,7 @@ photos_overview_searchbar_active_changed (PhotosOverviewSearchbar *self,
gd_tagged_entry_add_tag (self->search_entry, tag);
}
- event_device = gtk_get_current_event_device ();
- if (event_device != NULL)
- gd_entry_focus_hack (GTK_WIDGET (self->search_entry), event_device);
-
+ gtk_entry_grab_focus_without_selecting (GTK_ENTRY (self->search_entry));
g_free (name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]