mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-08 18:33:30 +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:
@@ -83,7 +83,9 @@ void MwLLDestroy(MwLL handle) {
|
||||
|
||||
destroy_pixmap(handle);
|
||||
XFreeGC(handle->display, handle->gc);
|
||||
XUnmapWindow(handle->display, handle->window);
|
||||
XDestroyWindow(handle->display, handle->window);
|
||||
XFlush(handle->display);
|
||||
free(handle);
|
||||
}
|
||||
|
||||
|
||||
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