[meld] sourceview: Don't use meldsettings directly in changed callback
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] sourceview: Don't use meldsettings directly in changed callback
- Date: Fri, 5 Jul 2019 01:24:37 +0000 (UTC)
commit eb4f88f316af8a6274e362c4f818e3bb9b85edd2
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Jul 5 09:47:26 2019 +1000
sourceview: Don't use meldsettings directly in changed callback
meld/sourceview.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meld/sourceview.py b/meld/sourceview.py
index c7735d23..296327bc 100644
--- a/meld/sourceview.py
+++ b/meld/sourceview.py
@@ -232,7 +232,7 @@ class MeldSourceView(GtkSource.View, SourceViewHelperMixin):
def on_setting_changed(self, settings, key):
if key == 'font':
- self.override_font(meldsettings.font)
+ self.override_font(settings.font)
elif key == 'style-scheme':
self.highlight_color = colour_lookup_with_fallback(
"meld:current-line-highlight", "background")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]