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



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]