Update widget attribute processing
@@ -206,13 +206,12 @@ static int ParseWidget( XMLParserContext ctx, xmlNodePtr node )
Widget_AddClass( w, prop_val );
continue;
}
- if( !w->proto || !w->proto->setattr ) {
- continue;
- }
prop_name = malloc( strsize( (const char*)prop->name ) );
strtolower( prop_name, (const char*)prop->name );
Widget_SetAttribute( w, prop_name, prop_val );
+ if( w->proto && w->proto->setattr ) {
w->proto->setattr( w, prop_name, prop_val );
+ }
free( prop_name );
}
if( prop_val ) {
