[gedit-latex] Use GFile instead of uri directly.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Use GFile instead of uri directly.
- Date: Thu, 23 Jun 2011 22:39:44 +0000 (UTC)
commit dde2cbedbaf4b35da8dac29062e2ba37950d6d4e
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Jun 24 00:38:55 2011 +0200
Use GFile instead of uri directly.
The location may be None so we can't get the uri from it.
latex/base/decorators.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/latex/base/decorators.py b/latex/base/decorators.py
index 42198fc..447f4f8 100644
--- a/latex/base/decorators.py
+++ b/latex/base/decorators.py
@@ -761,8 +761,8 @@ class GeditTabDecorator(object):
@return: True if the editor has changed
"""
- uri = self._text_buffer.get_location().get_uri()
- if uri is None:
+ location = self._text_buffer.get_location()
+ if location is None:
# this happends when the plugin is activated in a running Gedit
# and this decorator is created for the empty file
@@ -772,7 +772,7 @@ class GeditTabDecorator(object):
self._window_decorator.adjust(self)
else:
- file = File(uri)
+ file = File(location.get_uri())
if file == self._file: # FIXME: != doesn't work for File...
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]