diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index d741d0cc..249b106a 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -895,6 +895,19 @@ 3 + + + Copy on selection + True + True + False + True + + + + 4 + + True @@ -928,7 +941,7 @@ False - 4 + 5 @@ -1062,7 +1075,7 @@ False False - 5 + 6 @@ -1163,7 +1176,7 @@ False False - 6 + 7 diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 70796a85..a7333f8c 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -321,6 +321,9 @@ class PrefsEditor: # Show titlebar widget = guiget('show_titlebar') widget.set_active(self.config['show_titlebar']) + # Copy on selection + widget = guiget('copy_on_selection') + widget.set_active(self.config['copy_on_selection']) # Word chars widget = guiget('word_chars_entry') widget.set_text(self.config['word_chars']) @@ -542,6 +545,11 @@ class PrefsEditor: self.config['show_titlebar'] = widget.get_active() self.config.save() + def on_copy_on_selection_toggled(self, widget): + """Copy on selection setting changed""" + self.config['copy_on_selection'] = widget.get_active() + self.config.save() + def on_cursor_blink_toggled(self, widget): """Cursor blink setting changed""" self.config['cursor_blink'] = widget.get_active()