]> asedeno.scripts.mit.edu Git - PuTTY_svn.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)
commit74fb513aa73e778d6877e1b7c0c0cea79cdd921d
treeec001adc408e9c3300bf2164f15330aee4239f35
parentdc332b25ed8c4aa38b884595c3c0e20f0e476ec1
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: http://svn.tartarus.org/sgt/putty@8074 cda61777-01e9-0310-a592-d414129be87e
config.c