[gtk+] emoji: Start search on the first character
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] emoji: Start search on the first character
- Date: Sun, 13 Aug 2017 11:51:46 +0000 (UTC)
commit fd4fa7be290c6aa5f2a02850d24330ce65f1a9b3
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 13 07:49:13 2017 -0400
emoji: Start search on the first character
There is no need to wait for a longer prefix here.
We already display all the content anyway, it will
only get less.
gtk/gtkemojichooser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c
index a26e7dc..be12a5f 100644
--- a/gtk/gtkemojichooser.c
+++ b/gtk/gtkemojichooser.c
@@ -381,7 +381,7 @@ filter_func (GtkFlowBoxChild *child,
text = gtk_entry_get_text (GTK_ENTRY (chooser->search_entry));
emoji_data = (GVariant *) g_object_get_data (G_OBJECT (child), "emoji-data");
- if (text[0] == 0 || text[1] == 0)
+ if (text[0] == 0)
goto out;
if (!emoji_data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]