externaltools: use Gedit.App instead of Gedit.app...

parent b5bb906b
......@@ -109,7 +109,7 @@ class OpenDocumentRelPathFileLookupProvider(FileLookupProvider):
if path.startswith('/'):
return None
for doc in Gedit.app_get_default().get_documents():
for doc in Gedit.App.get_default().get_documents():
if doc.is_local():
location = doc.get_location()
if location:
......@@ -134,7 +134,7 @@ class OpenDocumentFileLookupProvider(FileLookupProvider):
if path.startswith('/'):
return None
for doc in Gedit.app_get_default().get_documents():
for doc in Gedit.App.get_default().get_documents():
if doc.is_local():
location = doc.get_location()
if location and location.get_uri().endswith(path):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment