mirror of
https://git.planet-casio.com/Lephenixnoir/JustUI.git
synced 2024-12-29 13:03:40 +01:00
update built-in widgets' event handlers to default to jwidget
This commit is contained in:
parent
216918123f
commit
683e89d725
6 changed files with 6 additions and 6 deletions
|
@ -567,7 +567,7 @@ static bool jfileselect_poly_event(void *fs0, jevent e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return jwidget_poly_event(fs, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void jfileselect_poly_destroy(void *fs0)
|
static void jfileselect_poly_destroy(void *fs0)
|
||||||
|
|
|
@ -379,7 +379,7 @@ static bool jframe_poly_event(void *f0, jevent e)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return jwidget_poly_event(f, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* jframe type definition */
|
/* jframe type definition */
|
||||||
|
|
|
@ -332,7 +332,7 @@ static bool jinput_poly_event(void *i0, jevent e)
|
||||||
i->widget.update = 1;
|
i->widget.update = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return jwidget_poly_event(i, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void jinput_poly_destroy(void *i0)
|
static void jinput_poly_destroy(void *i0)
|
||||||
|
|
|
@ -259,7 +259,7 @@ static bool jlist_poly_event(void *l0, jevent e)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return jwidget_poly_event(l, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void jlist_poly_destroy(void *l0)
|
static void jlist_poly_destroy(void *l0)
|
||||||
|
|
|
@ -68,8 +68,7 @@ static bool jscrolledlist_poly_event(void *l0, jevent e)
|
||||||
if(e.type == JLIST_MODEL_UPDATED && e.source == l->list)
|
if(e.type == JLIST_MODEL_UPDATED && e.source == l->list)
|
||||||
shake_scroll(l, true);
|
shake_scroll(l, true);
|
||||||
|
|
||||||
/* Allow the events to bubble up */
|
return jwidget_poly_event(l, e);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* jscrolledlist type definition */
|
/* jscrolledlist type definition */
|
||||||
|
|
|
@ -89,6 +89,7 @@ bool jwidget_poly_event(void *w0, jevent e)
|
||||||
{
|
{
|
||||||
J_CAST(w)
|
J_CAST(w)
|
||||||
(void)w;
|
(void)w;
|
||||||
|
(void)e;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue