[gedit] Do not use Gedit.utils anymore.



commit 9baa84207a44d6590ef2b69bf3af6a2e76208675
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Mar 20 21:37:08 2011 +0100

    Do not use Gedit.utils anymore.

 plugins/externaltools/tools/functions.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/externaltools/tools/functions.py b/plugins/externaltools/tools/functions.py
index d3b2d0d..53e0b85 100644
--- a/plugins/externaltools/tools/functions.py
+++ b/plugins/externaltools/tools/functions.py
@@ -88,7 +88,7 @@ def run_external_tool(window, panel, node):
             capture.set_env(GEDIT_CURRENT_DOCUMENT_URI    = location.get_uri(),
                             GEDIT_CURRENT_DOCUMENT_NAME   = name,
                             GEDIT_CURRENT_DOCUMENT_SCHEME = scheme)
-            if Gedit.utils.location_has_file_scheme(location):
+            if location.has_uri_scheme('file'):
                 path = location.get_path()
                 cwd = os.path.dirname(path)
                 capture.set_cwd(cwd)
@@ -103,7 +103,7 @@ def run_external_tool(window, panel, node):
                          if location.get_uri() is not None]
         documents_path = [location.get_path()
                           for location in documents_location
-                          if Gedit.utils.location_has_file_scheme(location)]
+                          if location.has_uri_scheme('file')]
         capture.set_env(GEDIT_DOCUMENTS_URI  = ' '.join(documents_uri),
                         GEDIT_DOCUMENTS_PATH = ' '.join(documents_path))
 



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