[gedit] snippets: use gtk_source_file_get_encoding()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] snippets: use gtk_source_file_get_encoding()
- Date: Sun, 10 Aug 2014 15:34:59 +0000 (UTC)
commit dbfa04fbb7f3326742d79077f9f62df9a105d7e7
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Aug 10 17:34:13 2014 +0200
snippets: use gtk_source_file_get_encoding()
plugins/snippets/snippets/document.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snippets/snippets/document.py b/plugins/snippets/snippets/document.py
index 55f4d3a..9276adb 100644
--- a/plugins/snippets/snippets/document.py
+++ b/plugins/snippets/snippets/document.py
@@ -306,7 +306,7 @@ class Document(GObject.Object, Gedit.ViewActivatable, Signals):
return self.goto_placeholder(current, prev)
def string_in_native_doc_encoding(self, buf, s):
- enc = buf.get_encoding()
+ enc = buf.get_file().get_encoding()
if not enc or enc.get_charset() == 'UTF-8':
return s
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]