Commit 0bb9758b authored by Kai Willadsen's avatar Kai Willadsen

filediff: Initial hacky binding to highlight mode of statusbar

Until we have multiple statusbars, this is a placeholder for actual
functionality.
parent 7aea8b7f
......@@ -221,6 +221,13 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.status_info_labels = [overwrite_label, cursor_label]
self.statusbar.set_info_box(self.status_info_labels)
def bind_textbuffer_to_statusbar(buf, statusbar):
buf.bind_property(
'language', statusbar, 'source-language',
GObject.BindingFlags.BIDIRECTIONAL)
bind_textbuffer_to_statusbar(self.textbuffer[0], self.statusbar)
# Prototype implementation
from meld.gutterrendererchunk import GutterRendererChunkAction, GutterRendererChunkLines
......
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