git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@703 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-14 10:48:08 +00:00
parent fd743825e7
commit 1792b95516
25 changed files with 17743 additions and 17752 deletions

View File

@@ -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;
}