[gedit-plugins/gnome-2-32] Fix check on set_uri (should be set_location)



commit fe6a9c0c72bee039cb89152fedb23b5892f61b91
Author: Jesse van den Kieboom <jesse icecrew nl>
Date:   Mon May 31 00:59:00 2010 +0200

    Fix check on set_uri (should be set_location)

 plugins/commander/modules/edit.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/commander/modules/edit.py b/plugins/commander/modules/edit.py
index 21590a5..a6163c2 100644
--- a/plugins/commander/modules/edit.py
+++ b/plugins/commander/modules/edit.py
@@ -54,7 +54,7 @@ def rename(view, newfile):
 
 	doc = view.get_buffer()
 
-	if not hasattr(doc, 'set_uri'):
+	if not hasattr(doc, 'set_location'):
 		raise commander.commands.exceptions.Execute('Your version of gedit does not support this action')
 
 	if doc.is_untitled():



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