forked from pyrite-dev/milsko
new prop
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@283 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
0bb0ab8aa7
commit
91fe3c204b
3 changed files with 15 additions and 3 deletions
|
|
@ -18,6 +18,7 @@
|
||||||
#define MwNchecked "Ichecked"
|
#define MwNchecked "Ichecked"
|
||||||
#define MwNalignment "Ialignment"
|
#define MwNalignment "Ialignment"
|
||||||
#define MwNbold "Ibold"
|
#define MwNbold "Ibold"
|
||||||
|
#define MwNmain "Imain"
|
||||||
|
|
||||||
#define MwNtitle "Stitle"
|
#define MwNtitle "Stitle"
|
||||||
#define MwNtext "Stext"
|
#define MwNtext "Stext"
|
||||||
|
|
@ -36,6 +37,7 @@
|
||||||
#define MwNmouseUpHandler "CmouseUpHandler"
|
#define MwNmouseUpHandler "CmouseUpHandler"
|
||||||
#define MwNchangedHandler "CchangedHandler"
|
#define MwNchangedHandler "CchangedHandler"
|
||||||
#define MwNkeyHandler "CkeyHandler"
|
#define MwNkeyHandler "CkeyHandler"
|
||||||
#define MwNkeyReleasedHandler "CkeyReleasedHandler"
|
#define MwNkeyReleaseHandler "CkeyReleaseHandler"
|
||||||
|
#define MwNcloseHandler "CcloseHandler"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,9 @@ void MwLLDestroy(MwLL handle) {
|
||||||
|
|
||||||
destroy_pixmap(handle);
|
destroy_pixmap(handle);
|
||||||
XFreeGC(handle->display, handle->gc);
|
XFreeGC(handle->display, handle->gc);
|
||||||
|
XUnmapWindow(handle->display, handle->window);
|
||||||
XDestroyWindow(handle->display, handle->window);
|
XDestroyWindow(handle->display, handle->window);
|
||||||
|
XFlush(handle->display);
|
||||||
free(handle);
|
free(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
10
src/core.c
10
src/core.c
|
|
@ -49,10 +49,18 @@ static void llresizehandler(MwLL handle, void* data) {
|
||||||
|
|
||||||
static void llclosehandler(MwLL handle, void* data) {
|
static void llclosehandler(MwLL handle, void* data) {
|
||||||
MwWidget h = (MwWidget)handle->user;
|
MwWidget h = (MwWidget)handle->user;
|
||||||
|
int n;
|
||||||
|
|
||||||
(void)data;
|
(void)data;
|
||||||
|
|
||||||
|
if((n = MwGetInteger(h, MwNmain)) != -1 && n) {
|
||||||
|
while(h != NULL) {
|
||||||
h->close = 1;
|
h->close = 1;
|
||||||
|
MwDispatchUserHandler(h, MwNcloseHandler, NULL);
|
||||||
|
h = h->parent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
MwDestroyWidget(handle->user);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void llmovehandler(MwLL handle, void* data) {
|
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) {
|
static void llkeyrelhandler(MwLL handle, void* data) {
|
||||||
MwWidget h = (MwWidget)handle->user;
|
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) {
|
MwWidget MwCreateWidget(MwClass widget_class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue