update
This commit is contained in:
parent
68b39ed6d4
commit
1b9bac2611
2 changed files with 4 additions and 8 deletions
|
|
@ -28,9 +28,6 @@ void check_mail(void){
|
||||||
MwVaApply(image,
|
MwVaApply(image,
|
||||||
MwNpixmap, full,
|
MwNpixmap, full,
|
||||||
NULL);
|
NULL);
|
||||||
MwVaApply(window,
|
|
||||||
MwNiconPixmap, full,
|
|
||||||
NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
last = s.st_mtime;
|
last = s.st_mtime;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
#include "mailempty.xpm"
|
#include "mailempty.xpm"
|
||||||
#include "mailfull.xpm"
|
#include "mailfull.xpm"
|
||||||
|
|
||||||
MwWidget window, image;
|
MwWidget window, image, mail;
|
||||||
MwLLPixmap empty, full;
|
MwLLPixmap empty, full;
|
||||||
static int waiting = 0;
|
static int waiting = 0;
|
||||||
|
|
||||||
|
|
@ -41,9 +41,6 @@ static void mouseUp(MwWidget handle, void* user, void* client){
|
||||||
(void)user;
|
(void)user;
|
||||||
(void)client;
|
(void)client;
|
||||||
|
|
||||||
MwVaApply(window,
|
|
||||||
MwNiconPixmap, empty,
|
|
||||||
NULL);
|
|
||||||
MwVaApply(image,
|
MwVaApply(image,
|
||||||
MwNpixmap, empty,
|
MwNpixmap, empty,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
@ -60,10 +57,12 @@ int main() {
|
||||||
|
|
||||||
empty = MwLoadImage(window, DATADIR "/mde/icons/128x128/mailempty.png");
|
empty = MwLoadImage(window, DATADIR "/mde/icons/128x128/mailempty.png");
|
||||||
full = MwLoadImage(window, DATADIR "/mde/icons/128x128/mailfull.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(empty == NULL) empty = MwLoadXPM(window, mailempty);
|
||||||
if(full == NULL) full = MwLoadXPM(window, mailfull);
|
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,
|
image = MwVaCreateWidget(MwImageClass, "image", window, 0, 0, 128, 128,
|
||||||
MwNpixmap, empty,
|
MwNpixmap, empty,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue