[gnome-photos] searchbar: Only use ENTER events when active
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] searchbar: Only use ENTER events when active
- Date: Tue, 28 Jun 2016 17:42:19 +0000 (UTC)
commit 2f40f2e1d3a0161fabd3e4e71fd16b42895a2da7
Author: Alessandro Bono <abono gnome org>
Date: Tue Jun 28 18:48:55 2016 +0200
searchbar: Only use ENTER events when active
We don't want to risk activating random stuff while the searchbar is
not up.
Original patch from Cosimo Cecchi for gnome-documents.
https://bugzilla.gnome.org/show_bug.cgi?id=768130
src/photos-searchbar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-searchbar.c b/src/photos-searchbar.c
index a0808a9..622fe37 100644
--- a/src/photos-searchbar.c
+++ b/src/photos-searchbar.c
@@ -334,7 +334,7 @@ photos_searchbar_handle_event (PhotosSearchbar *self, GdkEventKey *event)
ret_val = GDK_EVENT_STOP;
goto out;
}
- else if (event->keyval == GDK_KEY_Return)
+ else if (priv->in && event->keyval == GDK_KEY_Return)
{
g_signal_emit (self, signals[ACTIVATE_RESULT], 0);
ret_val = GDK_EVENT_STOP;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]