mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-08 02:13:29 +00:00
fix
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@703 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -468,15 +468,15 @@ MwWidget MwFileChooser(MwWidget handle, const char* title) {
|
||||
|
||||
memset(fc, 0, sizeof(*fc));
|
||||
|
||||
p.x = 0;
|
||||
p.y = 0;
|
||||
|
||||
w = 700;
|
||||
h = w * 2 / 3;
|
||||
window = MwVaCreateWidget(MwWindowClass, "filechooser", handle, ww, wh, w, h,
|
||||
window = MwVaCreateWidget(MwWindowClass, "filechooser", handle, 0, 0, w, h,
|
||||
MwNtitle, title,
|
||||
NULL);
|
||||
|
||||
p.x = (ww - w) / 2;
|
||||
p.y = (wh - h) / 2;
|
||||
|
||||
fc->history_seek = 0;
|
||||
|
||||
fc->dir = MwLoadIcon(window, MwIconDirectory);
|
||||
@@ -501,8 +501,10 @@ MwWidget MwFileChooser(MwWidget handle, const char* title) {
|
||||
scan(window, path, 1);
|
||||
free(path);
|
||||
|
||||
MwLLShow(handle->lowlevel, 0);
|
||||
MwLLDetach(window->lowlevel, &p);
|
||||
MwLLMakePopup(window->lowlevel, handle->lowlevel);
|
||||
MwLLShow(handle->lowlevel, 1);
|
||||
|
||||
return window;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user