Exorcise beeps from the Colours pane in Gtk.
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 15 Jun 2008 12:39:09 +0000 (12:39 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 15 Jun 2008 12:39:09 +0000 (12:39 +0000)
commit8b5ee9aa8123945b29d23ae0fcfdc22d299e1ba3
treeec001adc408e9c3300bf2164f15330aee4239f35
parent2ce0fdbcf3fea6661c060eb85bf7d6253514c13c
Exorcise beeps from the Colours pane in Gtk.

The colour list box beeped at the user whenever it found that
something other than exactly one colour was selected. This seems to
happen implicitly in Gtk when the pane is changed. In Gtk1, this gave
you a beep whenever you left the Colours dialog after having selected
a colour from the list; in Gtk2, you additionally got a beep _every_
time you subsequently re-entered the Colours dialog (for reasons I
haven't investigated). Windows was unaffected.

Also, in Gtk (unlike Windows), it's possible for the user to go back
to the state where no items in the list box are selected at all.

For these reasons, stop beeping at the user, and instead blank the RGB
edit boxes as a hint that edits to them would be futile. (Really we
should be disabling them entirely, but the cross-platform edit
controls aren't up to that yet.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@8074 cda61777-01e9-0310-a592-d414129be87e
config.c