diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index cf2e944a..75fc5662 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -746,7 +746,10 @@ class PrefsEditor: def on_handlesize_change_value(self, widget, scroll, value): """Handle size changed""" - self.config['handle_size'] = int(value) + value = int(value) + if value > 5: + value = 5 + self.config['handle_size'] = value self.config.save() def on_focuscombo_changed(self, widget): diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 5a4bfc9a..5f6e49ca 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -229,10 +229,12 @@ class Terminator(Borg): """Update configuration for the whole application""" if self.config['handle_size'] in xrange(0, 6): - gtk.rc_parse_string("""style "terminator-paned-style" { - GtkPaned::handle_size = %s } - class "GtkPaned" style "terminator-paned-style" """ % - self.config['handle_size']) + gtk.rc_parse_string(""" + style "terminator-paned-style" { + GtkPaned::handle_size = %s + } + class "GtkPaned" style "terminator-paned-style" + """ % self.config['handle_size']) gtk.rc_reset_styles(gtk.settings_get_default()) # Cause all the terminals to reconfigure