[nautilus-python/nautilus-3.0] Fixed the open terminal example to use the dynamic GConf bindings



commit 0d1192b0b600d27a25ebdae045f7ad3e8145529e
Author: Adam Plumb <adamplumb gmail com>
Date:   Mon Oct 17 14:39:08 2011 -0500

    Fixed the open terminal example to use the dynamic GConf bindings

 examples/open-terminal.py |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/examples/open-terminal.py b/examples/open-terminal.py
index 1a12f01..7c70844 100644
--- a/examples/open-terminal.py
+++ b/examples/open-terminal.py
@@ -2,15 +2,13 @@
 import os
 import urllib
 
-import gconf
-
-from gi.repository import Nautilus, GObject
+from gi.repository import Nautilus, GObject, GConf
 
 TERMINAL_KEY = '/desktop/gnome/applications/terminal/exec'
 
-class OpenTerminalExtension(GObject.GObject, Nautilus.MenuProvider):
+class OpenTerminalExtension(Nautilus.MenuProvider, GObject.GObject):
     def __init__(self):
-        self.client = gconf.client_get_default()
+        self.client = GConf.Client.get_default()
         
     def _open_terminal(self, file):
         filename = urllib.unquote(file.get_uri()[7:])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]