forked from pyrite-dev/milsko
fixed to use MwNvalue
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@796 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
68495f968a
commit
8e1949ad12
3 changed files with 19 additions and 12 deletions
|
|
@ -68,9 +68,16 @@ static void cancel_window(MwWidget handle, void* user, void* call) {
|
|||
}
|
||||
|
||||
static void okay(MwWidget handle, void* user, void* call) {
|
||||
filechooser_t* fc = handle->parent->opaque;
|
||||
char* p;
|
||||
|
||||
(void)user;
|
||||
(void)call;
|
||||
|
||||
p = MwDirectoryJoin(fc->path, fc->sorted_entries[MwGetInteger(fc->files, MwNvalue)]->name);
|
||||
MwDispatchUserHandler(handle->parent, MwNfileChosenHandler, p);
|
||||
free(p);
|
||||
|
||||
destroy(handle->parent);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue