[nautilus-python/wip/jtojnar/nautilus-4] examples: Drop GConf reference
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-python/wip/jtojnar/nautilus-4] examples: Drop GConf reference
- Date: Wed, 10 Aug 2022 19:40:30 +0000 (UTC)
commit 051e4eb9d7dcd65f784ac12a6832ec66f8ac94b1
Author: Jan Tojnar <jtojnar gmail com>
Date: Wed Aug 10 21:39:55 2022 +0200
examples: Drop GConf reference
It was not used for anything anymore.
examples/open-terminal.py | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/examples/open-terminal.py b/examples/open-terminal.py
index 8d33733..33ac5f1 100644
--- a/examples/open-terminal.py
+++ b/examples/open-terminal.py
@@ -7,15 +7,10 @@ try:
except ImportError:
from urllib.parse import unquote
-import gi
-gi.require_version('GConf', '2.0')
-from gi.repository import Nautilus, GObject, GConf
+from gi.repository import Nautilus, GObject
class OpenTerminalExtension(Nautilus.MenuProvider, GObject.GObject):
- def __init__(self):
- self.client = GConf.Client.get_default()
-
def _open_terminal(self, file):
filename = unquote(file.get_uri()[7:])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]