Hi,

I'd like to push the attached patch that disables the emoji picker in Epiphany's address bar, where it is not useful.
>From fb634a02ba315747d3aeddd98b1be5f2f504cab9 Mon Sep 17 00:00:00 2001
From: Michael Catanzaro <[email protected]>
Date: Mon, 4 Sep 2017 10:01:57 -0500
Subject: [PATCH] location-entry: disable emoji chooser

---
 lib/widgets/ephy-location-entry.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 89c92ea44..ad17b840b 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -271,6 +271,16 @@ ephy_location_entry_get_property (GObject    *object,
 }
 
 static void
+ephy_location_entry_constructed (GObject *object)
+{
+  G_OBJECT_CLASS (ephy_location_entry_parent_class)->constructed (object);
+
+#if GTK_CHECK_VERSION(3, 22, 20)
+  gtk_entry_set_input_hints (GTK_ENTRY (object), GTK_INPUT_HINT_NO_EMOJI);
+#endif
+}
+
+static void
 ephy_location_entry_finalize (GObject *object)
 {
   EphyLocationEntry *entry = EPHY_LOCATION_ENTRY (object);
@@ -368,6 +378,7 @@ ephy_location_entry_class_init (EphyLocationEntryClass *klass)
 
   object_class->get_property = ephy_location_entry_get_property;
   object_class->set_property = ephy_location_entry_set_property;
+  object_class->constructed = ephy_location_entry_constructed;
   object_class->finalize = ephy_location_entry_finalize;
 
   widget_class->size_allocate = ephy_location_entry_size_allocate;
-- 
2.13.5

_______________________________________________
[email protected]
https://mail.gnome.org/mailman/listinfo/release-team
Release-team lurker? Do NOT participate in discussions.

Reply via email to