This commit is contained in:
Nishi 2025-11-22 15:21:18 +09:00
commit 1b9bac2611
Signed by: nishi
GPG key ID: 27EF69B208EB9343
2 changed files with 4 additions and 8 deletions

View file

@ -28,9 +28,6 @@ void check_mail(void){
MwVaApply(image,
MwNpixmap, full,
NULL);
MwVaApply(window,
MwNiconPixmap, full,
NULL);
}
last = s.st_mtime;

View file

@ -3,7 +3,7 @@
#include "mailempty.xpm"
#include "mailfull.xpm"
MwWidget window, image;
MwWidget window, image, mail;
MwLLPixmap empty, full;
static int waiting = 0;
@ -41,9 +41,6 @@ static void mouseUp(MwWidget handle, void* user, void* client){
(void)user;
(void)client;
MwVaApply(window,
MwNiconPixmap, empty,
NULL);
MwVaApply(image,
MwNpixmap, empty,
NULL);
@ -60,10 +57,12 @@ int main() {
empty = MwLoadImage(window, DATADIR "/mde/icons/128x128/mailempty.png");
full = MwLoadImage(window, DATADIR "/mde/icons/128x128/mailfull.png");
mail = MwLoadImage(window, DATADIR "/mde/icons/128x128/mail.png");
if(empty == NULL) empty = MwLoadXPM(window, mailempty);
if(full == NULL) full = MwLoadXPM(window, mailfull);
if(mail == NULL) mail = MwLoadXPM(window, mailempty);
MwVaApply(window, MwNiconPixmap, empty, NULL);
MwVaApply(window, MwNiconPixmap, mail, NULL);
image = MwVaCreateWidget(MwImageClass, "image", window, 0, 0, 128, 128,
MwNpixmap, empty,