FL: Reset boxtypes before activating new theme.

This commit is contained in:
Jonathan Moore Liles 2012-04-11 22:56:25 -07:00
parent 25a0b8afc6
commit 5e63b25504
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ Fl_Theme::set ( const char *name )
for ( Fl_Theme *t = first; t; t = t->next )
if ( !strcasecmp( t->name(), name ) )
{
/* reset boxtypes */
Fl::reload_scheme();
printf( "Theme set to %s\n", t->name() );
t->_init_func();
Fl_Theme::_current = t;