rework typecheck

This commit is contained in:
xianjimli 2019-02-19 18:02:25 +08:00
parent e0a92f07ab
commit 8fa037f34c
2 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,7 @@ struct _widget_vtable_t {
/**
* parent class vtable
*/
struct _widget_vtable_t* parent;
const struct _widget_vtable_t* parent;
widget_create_t create;
widget_get_prop_t get_prop;

View File

@ -21,6 +21,7 @@
#include "tkc/mem.h"
#include "widgets/app_bar.h"
#include "base/widget_vtable.h"
TK_DECL_VTABLE(app_bar) = {.size = sizeof(app_bar_t),
.type = WIDGET_TYPE_APP_BAR,