yeah
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@399 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
81b8381ec6
commit
7a531de084
1 changed files with 8 additions and 0 deletions
|
|
@ -43,6 +43,13 @@ static void cancel(MwWidget handle, void* user, void* call) {
|
|||
destroy(handle->parent);
|
||||
}
|
||||
|
||||
static void cancel_window(MwWidget handle, void* user, void* call){
|
||||
(void)user;
|
||||
(void)call;
|
||||
|
||||
destroy(handle);
|
||||
}
|
||||
|
||||
static void okay(MwWidget handle, void* user, void* call) {
|
||||
(void)user;
|
||||
(void)call;
|
||||
|
|
@ -360,6 +367,7 @@ MwWidget MwFileChooser(MwWidget handle, const char* title) {
|
|||
|
||||
layout(window);
|
||||
MwAddUserHandler(window, MwNresizeHandler, resize, NULL);
|
||||
MwAddUserHandler(window, MwNcloseHandler, cancel_window, NULL);
|
||||
|
||||
path = MwDirectoryCurrent();
|
||||
scan(window, path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue