introduce widget_dirty - not only text list might want the optimization

This commit is contained in:
Cedric Roux
2016-05-02 14:33:07 +02:00
parent ca3a05a592
commit 042f284bc2
4 changed files with 11 additions and 11 deletions
+9
View File
@@ -180,6 +180,15 @@ void widget_add_child(gui *_gui, widget *parent, widget *child, int position)
gunlock(_gui);
}
void widget_dirty(gui *_gui, widget *_this)
{
struct gui *g = _gui;
struct widget *this = _this;
glock(g);
send_event(g, DIRTY, this->id);
gunlock(g);
}
static const char *names[] = {
"TOPLEVEL_WINDOW", "CONTAINER", "TEXT_LIST", "XY_PLOT", "BUTTON", "LABEL"
};