[epiphany] location-entry: disable emoji chooser
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] location-entry: disable emoji chooser
- Date: Wed, 6 Sep 2017 00:02:26 +0000 (UTC)
commit ac126bdafc45a8212590a2adeb464a5bc7276512
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon Sep 4 10:01:57 2017 -0500
location-entry: disable emoji chooser
lib/widgets/ephy-location-entry.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 89c92ea..ad17b84 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]