Skip to content

Commit

Permalink
use gi.repository instead of to import gtk directly
Browse files Browse the repository at this point in the history
  • Loading branch information
thislight committed Aug 13, 2020
1 parent d2ef721 commit 0071be0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/gnomeshellsearch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2017 Andrew Chadwick <[email protected]>
# Copyright 2014-2015 Davi da Silva Böger <[email protected]>

"""Zim plugin to display Zim pages in GNOME Shell search results."""

import json
Expand All @@ -19,7 +18,6 @@
logger = logging.getLogger(__name__)
ZIM_COMMAND = "zim"


# Zim plugin inegration:

class GnomeShellSearchPluginCommand (NotebookCommand):
Expand Down Expand Up @@ -95,14 +93,14 @@ def __init__(self, notebook=None, search_all=True):
self.search_all = search_all

def main(self):
import gtk
from gi.repository import Gtk

gtk.main()
Gtk.main()

def quit(self):
import gtk
from gi.repository import Gtk

gtk.main_quit()
Gtk.main_quit()

@dbus.service.method(dbus_interface=SEARCH_IFACE,
in_signature='as', out_signature='as',
Expand Down

0 comments on commit 0071be0

Please sign in to comment.