From a6f57796911ee13093bc7a49c961c37ff174310c Mon Sep 17 00:00:00 2001 From: thisLight Date: Thu, 13 Aug 2020 16:35:00 +0800 Subject: [PATCH] fixs gtk+ port mainloop on dbus service from #17 --- src/gnomeshellsearch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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',