add icon to window

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@396 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-17 10:50:59 +00:00
parent e60c127361
commit 75db522462
17 changed files with 483 additions and 680 deletions

View File

@@ -299,6 +299,7 @@ MwWidget MwFileChooser(MwWidget handle, const char* title) {
int w, h;
filechooser_t* fc = malloc(sizeof(*fc));
char* path;
MwLLPixmap icon;
memset(fc, 0, sizeof(*fc));
@@ -318,6 +319,11 @@ MwWidget MwFileChooser(MwWidget handle, const char* title) {
fc->up = MwLoadXPM(window, MwIconUp);
fc->computer = MwLoadXPM(window, MwIconComputer);
icon = MwLoadXPM(window, MwIconSearch);
MwVaApply(window,
MwNiconPixmap, icon,
NULL);
window->opaque = fc;
layout(window);