From c387197b936ad637d927137013ea2a257fc012a5 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 11 Feb 2010 13:45:02 +0000 Subject: [PATCH] Add preferences dialog entries for icon bell and generally re-arrange the bell options into their own section --- terminatorlib/preferences.glade | 150 ++++++++++++++++++++++---------- terminatorlib/prefseditor.py | 6 ++ 2 files changed, 108 insertions(+), 48 deletions(-) diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index d4f9fe2a..662bb950 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -819,51 +819,6 @@ 2 - - - Visual terminal bell - True - True - False - True - True - - - False - False - 3 - - - - - Audible terminal bell - True - True - False - True - True - - - False - False - 4 - - - - - Window manager bell - True - True - False - True - True - - - False - False - 5 - - Show titlebar @@ -875,7 +830,7 @@ False False - 6 + 3 @@ -910,7 +865,7 @@ False - 7 + 4 @@ -1038,7 +993,106 @@ False False - 8 + 5 + + + + + True + vertical + 6 + + + True + 0 + <b>Terminal bell</b> + True + + + False + False + 0 + + + + + True + 12 + + + True + vertical + + + Titlebar icon + True + True + False + True + + + 0 + + + + + Visual flash + True + True + False + True + True + + + False + False + 1 + + + + + Audible beep + True + True + False + True + True + + + False + False + 2 + + + + + Window list flash + True + True + False + True + True + + + False + False + 3 + + + + + + + False + False + 1 + + + + + False + False + 6 diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index d333fb93..6c2c4df2 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -309,6 +309,9 @@ class PrefsEditor: # Allow bold text widget = guiget('allow-bold-checkbutton') widget.set_active(self.config['allow_bold']) + # Icon terminal bell + widget = guiget('icon-bell-checkbutton') + widget.set_active(self.config['icon_bell']) # Visual terminal bell widget = guiget('visual-bell-checkbutton') widget.set_active(self.config['visible_bell']) @@ -480,6 +483,9 @@ class PrefsEditor: # Allow bold widget = guiget('allow-bold-checkbutton') self.config['allow_bold'] = widget.get_active() + # Icon Bell + widget = guiget('icon-bell-checkbutton') + self.config['icon_bell'] = widget.get_active() # Visual Bell widget = guiget('visual-bell-checkbutton') self.config['visible_bell'] = widget.get_active()