From a53dea6fa59f1bc663e7c7bc0370a0ebb74cf2a7 Mon Sep 17 00:00:00 2001 From: Jose Augusto Date: Sun, 27 Dec 2020 19:48:41 -0300 Subject: [PATCH] remove rewrap on resize from option and remove functions too --- doc/terminator_config.5 | 3 --- terminatorlib/config.py | 1 - terminatorlib/preferences.glade | 17 ----------------- terminatorlib/prefseditor.py | 8 -------- terminatorlib/terminal.py | 3 --- 5 files changed, 32 deletions(-) diff --git a/doc/terminator_config.5 b/doc/terminator_config.5 index 610c6767..e577a3d3 100644 --- a/doc/terminator_config.5 +++ b/doc/terminator_config.5 @@ -498,9 +498,6 @@ Default value: \fBUTF-8\fR If set to True, text selections will be automatically copied to the clipboard, in addition to being made the Primary selection. Default value: \fBFalse\fR .TP -.B rewrap_on_resize \fR(boolean) -If True, the terminal contents are rewrapped when the terminal's width changes. Warning: This might be slow if you have a huge scrollback buffer. -Default value: \fBTrue\fR .SH layouts diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 3e069e21..d5a7b2f1 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -250,7 +250,6 @@ DEFAULTS = { 'force_no_bell' : False, 'cycle_term_tab' : True, 'copy_on_selection' : False, - 'rewrap_on_resize' : True, 'split_to_group' : False, 'autoclean_groups' : True, 'http_proxy' : '', diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index ab7b02ee..773cf4ac 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -1752,23 +1752,6 @@ 4 - - - Rewrap on resize - False - True - True - False - 0.5 - True - - - - False - False - 5 - - Disable Ctrl+mousewheel zoom diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 136eb440..51221730 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -482,9 +482,6 @@ class PrefsEditor: # Copy on selection widget = guiget('copy_on_selection') widget.set_active(self.config['copy_on_selection']) - # Rewrap on resize - widget = guiget('rewrap_on_resize_checkbutton') - widget.set_active(self.config['rewrap_on_resize']) # Word chars widget = guiget('word_chars_entry') widget.set_text(self.config['word_chars']) @@ -802,11 +799,6 @@ class PrefsEditor: self.config['copy_on_selection'] = widget.get_active() self.config.save() - def on_rewrap_on_resize_toggled(self, widget): - """Rewrap on resize setting changed""" - self.config['rewrap_on_resize'] = widget.get_active() - self.config.save() - def on_putty_paste_style_toggled(self, widget): """Putty paste style setting changed""" self.config['putty_paste_style'] = widget.get_active() diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 42de222a..5370a4db 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -827,9 +827,6 @@ class Terminal(Gtk.VBox): elif self.config['scrollbar_position'] == 'right': self.terminalbox.reorder_child(self.vte, 0) - - self.vte.set_rewrap_on_resize(self.config['rewrap_on_resize']) - self.titlebar.update() self.vte.queue_draw()