From eacd72124a406b60ff5567a1620ea24d30861981 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Sat, 25 Dec 2021 13:09:33 +0100 Subject: [PATCH] Fix: handle_size treated as cell_width --- terminatorlib/preferences.glade | 202 ++++++++++++++------------------ terminatorlib/prefseditor.py | 6 +- 2 files changed, 92 insertions(+), 116 deletions(-) diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index 6719c89d..26d46b81 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -953,117 +953,6 @@ 1 - - - True - False - Cell Height: - 0 - - - 0 - 4 - - - - - 100 - True - True - baseline - True - adjustment_cellheight - 1 - False - bottom - - - - 2 - 4 - - - - - True - False - 1.0 - right - 5 - 5 - 1 - 1 - - - 1 - 4 - - - - - 100 - True - True - baseline - True - adjustment1 - 0 - 0 - False - bottom - - - - 2 - 1 - - - - - True - False - Cell Width: - 0 - - - 0 - 5 - - - - - 100 - True - True - baseline - True - adjustment_cellwidth - 1 - False - bottom - - - - 2 - 5 - - - - - True - False - 1.0 - right - 5 - 5 - 1 - 1 - - - 1 - 5 - - 100 @@ -1132,6 +1021,97 @@ 3 + + + True + False + Cell Height: + 0 + + + 0 + 5 + + + + + True + False + 1.0 + right + 5 + 5 + 1 + 1 + + + 1 + 5 + + + + + 100 + True + True + baseline + True + adjustment_cellheight + 1 + False + bottom + + + + 2 + 5 + + + + + 100 + True + True + True + adjustment_cellwidth + 1 + False + bottom + + + + 2 + 4 + + + + + True + False + 1.0 + right + 5 + 5 + 1 + 1 + + + 1 + 4 + + + + + True + False + Cell Width: + 0 + + + 0 + 4 + + True diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 965473a6..5bfe6b23 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -257,9 +257,7 @@ class PrefsEditor: widget = guiget('handlesize_value_label') widget.set_text(str(termsepsize)) - # # Cell Height - # cellheightsize = self.config['cell_height'] cellheightsize = round(float(cellheightsize),1) widget = guiget('cellheight') @@ -267,9 +265,7 @@ class PrefsEditor: widget = guiget('cellheight_value_label') widget.set_text(str(cellheightsize)) - # # Cell Width - # cellwidthsize = self.config['cell_width'] cellwidthsize = round(float(cellwidthsize),1) widget = guiget('cellwidth') @@ -1278,7 +1274,7 @@ class PrefsEditor: label_widget = guiget('cellheight_value_label') label_widget.set_text(str(value)) - def on_handlewidth_value_changed(self, widget): + def on_cellwidth_value_changed(self, widget): """Handles cell width changed""" value = widget.get_value() value = round(float(value), 1)