diff --git a/src/core.c b/src/core.c index f0a47bd..43898ff 100644 --- a/src/core.c +++ b/src/core.c @@ -164,6 +164,9 @@ MwWidget MwCreateWidget(MwClass widget_class, const char* name, MwWidget parent, MwDestroyWidget(h); return NULL; } + if(h->widget_class == NULL){ + MwSetDefault(h); + } h->prop_event = 1; if(h->widget_class != NULL && h->widget_class->tick != NULL) {