mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-09 10:53:27 +00:00
new prop
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@283 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
12
src/core.c
12
src/core.c
@@ -49,10 +49,18 @@ static void llresizehandler(MwLL handle, void* data) {
|
||||
|
||||
static void llclosehandler(MwLL handle, void* data) {
|
||||
MwWidget h = (MwWidget)handle->user;
|
||||
int n;
|
||||
|
||||
(void)data;
|
||||
|
||||
h->close = 1;
|
||||
if((n = MwGetInteger(h, MwNmain)) != -1 && n) {
|
||||
while(h != NULL) {
|
||||
h->close = 1;
|
||||
MwDispatchUserHandler(h, MwNcloseHandler, NULL);
|
||||
h = h->parent;
|
||||
}
|
||||
}
|
||||
MwDestroyWidget(handle->user);
|
||||
}
|
||||
|
||||
static void llmovehandler(MwLL handle, void* data) {
|
||||
@@ -75,7 +83,7 @@ static void llkeyhandler(MwLL handle, void* data) {
|
||||
static void llkeyrelhandler(MwLL handle, void* data) {
|
||||
MwWidget h = (MwWidget)handle->user;
|
||||
|
||||
MwDispatchUserHandler(h, MwNkeyReleasedHandler, data);
|
||||
MwDispatchUserHandler(h, MwNkeyReleaseHandler, data);
|
||||
}
|
||||
|
||||
MwWidget MwCreateWidget(MwClass widget_class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height) {
|
||||
|
||||
Reference in New Issue
Block a user