update built-in widgets' event handlers to default to jwidget

This commit is contained in:
Lephenixnoir 2024-09-05 14:06:31 +02:00
parent 216918123f
commit 683e89d725
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
6 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -379,7 +379,7 @@ static bool jframe_poly_event(void *f0, jevent e)
return true;
}
return false;
return jwidget_poly_event(f, e);
}
/* jframe type definition */

View file

@ -332,7 +332,7 @@ static bool jinput_poly_event(void *i0, jevent e)
i->widget.update = 1;
}
return true;
return jwidget_poly_event(i, e);
}
static void jinput_poly_destroy(void *i0)

View file

@ -259,7 +259,7 @@ static bool jlist_poly_event(void *l0, jevent e)
return true;
}
return false;
return jwidget_poly_event(l, e);
}
static void jlist_poly_destroy(void *l0)

View file

@ -68,8 +68,7 @@ static bool jscrolledlist_poly_event(void *l0, jevent e)
if(e.type == JLIST_MODEL_UPDATED && e.source == l->list)
shake_scroll(l, true);
/* Allow the events to bubble up */
return false;
return jwidget_poly_event(l, e);
}
/* jscrolledlist type definition */

View file

@ -89,6 +89,7 @@ bool jwidget_poly_event(void *w0, jevent e)
{
J_CAST(w)
(void)w;
(void)e;
return false;
}