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