[meld] filediff: Use the new buffer encoding to set the status bar state



commit 0d04e42c0aa9f167cfb8590540008c5f5368301d
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Oct 28 09:02:16 2017 +1000

    filediff: Use the new buffer encoding to set the status bar state

 meld/filediff.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index a0b0ff4..f801b87 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -228,6 +228,10 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
                 'language', statusbar, 'source-language',
                 GObject.BindingFlags.BIDIRECTIONAL)
 
+            buf.data.bind_property(
+                'encoding', statusbar, 'source-encoding',
+                GObject.BindingFlags.DEFAULT)
+
         # Prototype implementation
 
         from meld.gutterrendererchunk import GutterRendererChunkAction, GutterRendererChunkLines


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