[nautilus-python] examples: Drop GConf reference



commit 147985d4e757cabb8b0b598b5086b5b184d57083
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 since 
https://gitlab.gnome.org/GNOME/nautilus-python/commit/d14849670f834e81f2061afc1e6879c6a166379b.

 examples/open-terminal.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/examples/open-terminal.py b/examples/open-terminal.py
index fd43d85..a7d98b6 100644
--- a/examples/open-terminal.py
+++ b/examples/open-terminal.py
@@ -1,15 +1,13 @@
 # This example is contributed by Martin Enlund
 import os
 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()
-        
+        pass
+
     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]