[gedit-plugins/gnome-2-32] Use uri_has_file_scheme since location is not available in stable



commit 4cc730a2845d162ee7689e7e0938c2d19c520f04
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Mon Aug 30 08:31:33 2010 +0200

    Use uri_has_file_scheme since location is not available in stable

 plugins/terminal/terminal.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/terminal/terminal.py b/plugins/terminal/terminal.py
index 229a766..6094546 100644
--- a/plugins/terminal/terminal.py
+++ b/plugins/terminal/terminal.py
@@ -297,7 +297,7 @@ class TerminalWindowHelper(object):
         if doc is None:
             return None
         location = doc.get_location()
-        if location is not None and gedit.utils.location_has_file_scheme(location):
+        if location is not None and gedit.utils.uri_has_file_scheme(location.get_uri()):
             directory = location.get_parent()
             return directory.get_path()
         return None



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