diff --git a/src/gnomeshellsearch.py b/src/gnomeshellsearch.py index 63479f4..77902d1 100644 --- a/src/gnomeshellsearch.py +++ b/src/gnomeshellsearch.py @@ -93,14 +93,14 @@ def __init__(self, notebook=None, search_all=True): self.search_all = search_all def main(self): - from gi.repository import Gtk + from gi.repository import GLib - Gtk.main() + GLib.MainLoop().run() def quit(self): - from gi.repository import Gtk + from gi.repository import GLib - Gtk.main_quit() + GLib.MainLoop().quit() @dbus.service.method(dbus_interface=SEARCH_IFACE, in_signature='as', out_signature='as',