[gnome-tweak-tool] Opt out of emoji support in search boxes
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Opt out of emoji support in search boxes
- Date: Thu, 21 Sep 2017 02:02:08 +0000 (UTC)
commit c37c273851e06177d520eaf0aa514c2a8a8ddfde
Author: Jeremy Bicha <jbicha ubuntu com>
Date: Wed Sep 20 22:00:12 2017 -0400
Opt out of emoji support in search boxes
gtweak/tweaks/tweak_group_startup.py | 2 ++
gtweak/tweakview.py | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_startup.py b/gtweak/tweaks/tweak_group_startup.py
index 7bda9b2..9189293 100644
--- a/gtweak/tweaks/tweak_group_startup.py
+++ b/gtweak/tweaks/tweak_group_startup.py
@@ -63,6 +63,8 @@ class _AppChooser(Gtk.Dialog):
placeholder_text=_("Search Applications…"))
self.entry.set_width_chars(30)
self.entry.props.activates_default=True
+ if (Gtk.check_version(3, 22, 20) == None):
+ self.entry.set_input_hints(Gtk.InputHints.NO_EMOJI)
self.searchbar = Gtk.SearchBar()
self.searchbar.add(self.entry)
diff --git a/gtweak/tweakview.py b/gtweak/tweakview.py
index 38e6bac..6adecc9 100644
--- a/gtweak/tweakview.py
+++ b/gtweak/tweakview.py
@@ -117,6 +117,8 @@ class Window(Gtk.ApplicationWindow):
left_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
self.entry = Gtk.SearchEntry(placeholder_text=_("Search Tweaks…"))
+ if (Gtk.check_version(3, 22, 20) == None):
+ self.entry.set_input_hints(Gtk.InputHints.NO_EMOJI)
self.entry.connect("search-changed", self._on_search)
self.searchbar = Gtk.SearchBar()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]