FL: Reset boxtypes before activating new theme.
This commit is contained in:
parent
25a0b8afc6
commit
5e63b25504
|
@ -146,6 +146,9 @@ Fl_Theme::set ( const char *name )
|
||||||
for ( Fl_Theme *t = first; t; t = t->next )
|
for ( Fl_Theme *t = first; t; t = t->next )
|
||||||
if ( !strcasecmp( t->name(), name ) )
|
if ( !strcasecmp( t->name(), name ) )
|
||||||
{
|
{
|
||||||
|
/* reset boxtypes */
|
||||||
|
Fl::reload_scheme();
|
||||||
|
|
||||||
printf( "Theme set to %s\n", t->name() );
|
printf( "Theme set to %s\n", t->name() );
|
||||||
t->_init_func();
|
t->_init_func();
|
||||||
Fl_Theme::_current = t;
|
Fl_Theme::_current = t;
|
||||||
|
|
Loading…
Reference in New Issue