[gedit-plugins] sessionsaver: use gtk_source_file_get_location()



commit 0d0dc59866b392da7682ee1797934bf5acae8374
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Mar 19 12:12:04 2020 +0100

    sessionsaver: use gtk_source_file_get_location()
    
    Not gedit_document_get_location() which was deprecated and then removed.

 plugins/sessionsaver/sessionsaver/dialogs.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/sessionsaver/sessionsaver/dialogs.py b/plugins/sessionsaver/sessionsaver/dialogs.py
index f8b80ee..a2a8b7a 100644
--- a/plugins/sessionsaver/sessionsaver/dialogs.py
+++ b/plugins/sessionsaver/sessionsaver/dialogs.py
@@ -124,9 +124,9 @@ class SaveSessionDialog(Dialog):
 
     def on_response(self, dialog, response_id):
         if response_id == Gtk.ResponseType.OK:
-            files = [doc.get_location()
+            files = [doc.get_file().get_location()
                         for doc in self.parent.get_documents()
-                        if doc.get_location() is not None]
+                        if doc.get_file().get_location() is not None]
             name = self.combobox.get_child().get_text()
             self.sessions.add(Session(name, files))
             self.sessions.save()


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