From 1bb7ad94cb413875f5707462f59a8f55ed2b7613 Mon Sep 17 00:00:00 2001 From: jonian Date: Mon, 22 Mar 2021 17:49:39 +0200 Subject: [PATCH] layout: do not listen to `use-system-fonts` changes on shell >= 36 --- unite@hardpixel.eu/layout.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unite@hardpixel.eu/layout.js b/unite@hardpixel.eu/layout.js index afbe8fe..bceec65 100644 --- a/unite@hardpixel.eu/layout.js +++ b/unite@hardpixel.eu/layout.js @@ -91,15 +91,15 @@ var LayoutManager = GObject.registerClass( 'hide-dropdown-arrows', this._onHideDropdownArrows.bind(this) ) - this.settings.connect( - 'use-system-fonts', this._onChangeStyles.bind(this) - ) - this.settings.connect( 'reduce-panel-spacing', this._onChangeStyles.bind(this) ) if (VERSION < 36) { + this.settings.connect( + 'use-system-fonts', this._onChangeStyles.bind(this) + ) + this.signals.connect( GtkSettings, 'notify::gtk-font-name', this._onChangeStyles.bind(this) )