[meld] sourceview: Fix the commit message textview not getting preferences
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] sourceview: Fix the commit message textview not getting preferences
- Date: Wed, 14 Aug 2019 20:54:32 +0000 (UTC)
commit 2d57bb4d9fd4455bf23bd8050bd6b5f8c2f2544b
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Jul 14 07:19:14 2019 +1000
sourceview: Fix the commit message textview not getting preferences
This has been broken for a while...
meld/sourceview.py | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/meld/sourceview.py b/meld/sourceview.py
index 7daf9d2e..828b5a3e 100644
--- a/meld/sourceview.py
+++ b/meld/sourceview.py
@@ -393,11 +393,24 @@ class CommitMessageSourceView(GtkSource.View):
__gtype_name__ = "CommitMessageSourceView"
- __gsettings_bindings__ = (
+ __gsettings_bindings_view__ = (
('indent-width', 'tab-width'),
('insert-spaces-instead-of-tabs', 'insert-spaces-instead-of-tabs'),
+ ('enable-space-drawer', 'enable-space-drawer'),
)
+ enable_space_drawer = GObject.Property(type=bool, default=False)
+
+ def do_realize(self):
+ bind_settings(self)
+
+ self.bind_property(
+ 'enable-space-drawer', self.props.space_drawer, 'enable-matrix',
+ GObject.BindingFlags.DEFAULT | GObject.BindingFlags.SYNC_CREATE,
+ )
+
+ return GtkSource.View.do_realize(self)
+
class MeldSourceMap(GtkSource.Map, SourceViewHelperMixin):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]