Commit c37c2738 authored by Jeremy Bicha's avatar Jeremy Bicha 🎹

Opt out of emoji support in search boxes

parent 1aed9e1c
......@@ -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)
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment