]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Deal with the possibility of no valid font being selected at all
authorSimon Tatham <anakin@pobox.com>
Sat, 29 Mar 2008 14:21:25 +0000 (14:21 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 29 Mar 2008 14:21:25 +0000 (14:21 +0000)
commitae802c16d8feb31f3c3600b3e2176b5d20d64da9
treed6a2934e387fcce338369f3a8d6700f84b86fe3f
parentf07f7825476302b96b06feb1712d765b18a9fb79
Deal with the possibility of no valid font being selected at all
during an entire run of unifontsel (because unifontsel_set_name was
either not called at all, or called with a name that didn't
correspond to any known font). In this situation we grey out the OK
button until a valid font is selected, and we have
unifontsel_get_name return NULL rather than failing an assertion if
it should be called in that state. The current client code in
gtkdlg.c should never encounter a NULL return, since it only calls
it after the OK button is clicked, but I've stuck an assertion in
there too on general principles.

[originally from svn r7953]
unix/gtkdlg.c
unix/gtkfont.c