[gedit-plugins] Port to gtk_source_file_is_local()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Port to gtk_source_file_is_local()
- Date: Sun, 14 Jun 2015 13:27:43 +0000 (UTC)
commit 1f83d387944363f32b57353dd5d92fa13573df6b
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Jun 14 15:23:47 2015 +0200
Port to gtk_source_file_is_local()
gedit_document_is_local() is now deprecated.
configure.ac | 2 +-
plugins/commander/modules/edit.py | 2 +-
plugins/commander/modules/shell.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e98a85d..876ba59 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,7 +57,7 @@ PKG_CHECK_MODULES(GEDIT, [
glib-2.0 >= 2.32.0
gio-2.0 >= 2.32.0
gtk+-3.0 >= 3.9.0
- gtksourceview-3.0 >= 3.14.0
+ gtksourceview-3.0 >= 3.17.3
libpeas-1.0 >= 1.7.0
libpeas-gtk-1.0 >= 1.7.0
gedit >= 3.16.0
diff --git a/plugins/commander/modules/edit.py b/plugins/commander/modules/edit.py
index b1a3845..707b0ea 100644
--- a/plugins/commander/modules/edit.py
+++ b/plugins/commander/modules/edit.py
@@ -82,7 +82,7 @@ def rename(view, newfile):
if doc.get_modified():
raise commander.commands.exceptions.Execute('You have unsaved changes in your document')
- if not doc.is_local():
+ if not doc.get_file().is_local():
raise commander.commands.exceptions.Execute('You can only rename local files')
f = doc.get_file().get_location()
diff --git a/plugins/commander/modules/shell.py b/plugins/commander/modules/shell.py
index 0bcc988..b3a39c3 100644
--- a/plugins/commander/modules/shell.py
+++ b/plugins/commander/modules/shell.py
@@ -127,7 +127,7 @@ def _run_command(entry, replace, background, argstr):
cwd = None
doc = entry.view().get_buffer()
- if not doc.is_untitled() and doc.is_local():
+ if not doc.is_untitled() and doc.get_file().is_local():
gfile = doc.get_file().get_location()
cwd = os.path.dirname(gfile.get_path())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]