forked from achadwick/zimsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use gi.repository instead of to import gtk directly
- Loading branch information
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -19,7 +18,6 @@ | |
logger = logging.getLogger(__name__) | ||
ZIM_COMMAND = "zim" | ||
|
||
|
||
# Zim plugin inegration: | ||
|
||
class GnomeShellSearchPluginCommand (NotebookCommand): | ||
|
@@ -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', | ||
|