mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-07 01:49:47 +00:00
fix
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@718 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -465,18 +465,24 @@ MwWidget MwFileChooser(MwWidget handle, const char* title) {
|
||||
filechooser_t* fc = malloc(sizeof(*fc));
|
||||
char* path;
|
||||
MwLLPixmap icon;
|
||||
int wx;
|
||||
int wy;
|
||||
|
||||
memset(fc, 0, sizeof(*fc));
|
||||
|
||||
w = 700;
|
||||
h = w * 2 / 3;
|
||||
window = MwVaCreateWidget(MwWindowClass, "filechooser", handle, 0, 0, w, h,
|
||||
MwNtitle, title,
|
||||
NULL);
|
||||
w = 700;
|
||||
h = w * 2 / 3;
|
||||
|
||||
p.x = (ww - w) / 2;
|
||||
p.y = (wh - h) / 2;
|
||||
|
||||
wx = wy = 0;
|
||||
if(handle == NULL) wx = wy = MwDEFAULT;
|
||||
|
||||
window = MwVaCreateWidget(MwWindowClass, "filechooser", handle, wx, wy, w, h,
|
||||
MwNtitle, title,
|
||||
NULL);
|
||||
|
||||
fc->history_seek = 0;
|
||||
|
||||
fc->dir = MwLoadIcon(window, MwIconDirectory);
|
||||
@@ -502,7 +508,7 @@ MwWidget MwFileChooser(MwWidget handle, const char* title) {
|
||||
free(path);
|
||||
|
||||
MwLLBeginStateChange(window->lowlevel);
|
||||
MwLLDetach(window->lowlevel, &p);
|
||||
if(handle != NULL) MwLLDetach(window->lowlevel, &p);
|
||||
MwLLMakePopup(window->lowlevel, handle->lowlevel);
|
||||
MwLLEndStateChange(window->lowlevel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user