Skip to content

Commit

Permalink
fixs gtk+ port mainloop on dbus service from achadwick#17
Browse files Browse the repository at this point in the history
  • Loading branch information
thislight committed Aug 13, 2020
1 parent 0071be0 commit a6f5779
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gnomeshellsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a6f5779

Please sign in to comment.