[gedit-latex/3-uses-deprecated-gedit-document-get_location] Replace now deprecated gedit.Document.get_location() Closes https://gitlab.gnome.org/GNOME/gedit-lat



commit 2b4cbb4421b0f4e831550b7bc6a02931314e4133
Author: Pietro Battiston <pbattiston src gnome org>
Date:   Sun Apr 12 16:04:12 2020 +0200

    Replace now deprecated gedit.Document.get_location()
    Closes https://gitlab.gnome.org/GNOME/gedit-latex/-/issues/3

 latex/tabdecorator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/latex/tabdecorator.py b/latex/tabdecorator.py
index 425f387..f60456d 100644
--- a/latex/tabdecorator.py
+++ b/latex/tabdecorator.py
@@ -104,7 +104,7 @@ class GeditTabDecorator(object):
 
         @return: True if the editor has changed
         """
-        location = self._text_buffer.get_location()
+        location = self._text_buffer.get_file().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


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