[nautilus-python/wip/jtojnar/nautilus-4: 1/4] examples: Drop GConf reference




commit e424b8e82f82cd3d0ee98510919d2438cb9c0a76
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 | 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]