]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Exorcise beeps from the Colours pane in Gtk.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 15 Jun 2008 12:39:09 +0000 (12:39 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 15 Jun 2008 12:39:09 +0000 (12:39 +0000)
commit6e447b9f184065f607334219aa042a95a950d532
treeec001adc408e9c3300bf2164f15330aee4239f35
parent189c9a2a08198ce11bfae1f8630b3792012dedcf
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.)

[originally from svn r8074]
config.c