[Tuxracer-checkins] CVS: tuxracer/src button.c,1.1,1.2
Status: Beta
Brought to you by:
jfpatry
From: Jasmin P. <jf...@us...> - 2000-09-25 14:00:34
|
Update of /cvsroot/tuxracer/tuxracer/src In directory slayer.i.sourceforge.net:/tmp/cvs-serv18550 Modified Files: button.c Log Message: - Fixed a bug in which the disabled font binding wasn't being initialized - Call ui_set_dirty() whenever enabled state of button changes Index: button.c =================================================================== RCS file: /cvsroot/tuxracer/tuxracer/src/button.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** button.c 2000/09/18 23:56:46 1.1 --- button.c 2000/09/25 14:00:29 1.2 *************** *** 354,357 **** --- 354,358 ---- button->disabled_tex.binding = NULL; button->font_binding = font_binding; + button->disabled_font_binding = NULL; button->hilit_font_binding = NULL; button->label = label; *************** *** 562,565 **** --- 563,570 ---- void button_set_enabled( button_t *button, bool_t enabled ) { + if ( button->enabled != enabled ) { + ui_set_dirty(); + } + button->enabled = enabled; |