mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-02-01 14:03:06 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user