Enlightenment CVS committal Author : devilhorns Project : e_modules Module : mail
Dir : e_modules/mail Modified Files: mail.edc imap.c pop.c mdir.c mbox.c e_mod_main.c Log Message: Fix centering label in the module. Reset mail count to zero on call to check mail so that we only get total of new mail. During checks, add new mail count to the total. =================================================================== RCS file: /cvs/e/e_modules/mail/mail.edc,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- mail.edc 12 Jun 2006 10:03:52 -0000 1.11 +++ mail.edc 12 Jun 2006 20:45:10 -0000 1.12 @@ -16,32 +16,10 @@ max: 128 128; parts { - part - { - name: "clip"; - type: RECT; - mouse_events: 1; - description - { - state: "default" 0.0; - color: 255 255 255 255; - rel1 - { - relative: 0.0 0.0; - offset: 0 0; - } - rel2 - { - relative: 1.0 1.0; - offset: -1 -1; - } - } - } part { name: "logo"; type: IMAGE; - clip_to: "clip"; mouse_events: 1; description { @@ -78,14 +56,13 @@ { name: "new_label"; type: TEXT; - clip_to: "clip"; - effect: SOFT_SHADOW; + effect: OUTLINE_SOFT_SHADOW; mouse_events: 1; description { state: "default" 0.0; - color: 0 0 0 255; - color3: 255 255 255 42; + color: 255 255 255 255; + color3: 0 0 0 32; visible: 0; rel1 { @@ -103,10 +80,9 @@ { text: ""; font: "VeraBold"; - size: 14; + size: 16; min: 1 1; - align: 0.5 0.5; - text_class: "module_large"; + align: 1.0 0.5; } } description @@ -114,8 +90,6 @@ state: "visible" 0.0; inherit: "default" 0.0; visible: 1; - color: 0 0 0 255; - color3: 255 255 255 42; } } } =================================================================== RCS file: /cvs/e/e_modules/mail/imap.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- imap.c 12 Jun 2006 20:21:28 -0000 1.3 +++ imap.c 12 Jun 2006 20:45:10 -0000 1.4 @@ -194,8 +194,9 @@ ecore_con_server_del(is->server); is->server = NULL; + inst = is->data; - inst->count = is->count; + inst->count += is->count; _mail_set_text(inst); return 0; @@ -258,9 +259,6 @@ is->count += num; ic->config->num_new = num; ic->config->num_total = total; - inst = is->data; - inst->count = num; - _mail_set_text(inst); if ((num > 0) && (ic->config->use_exec) && (ic->config->exec)) _mail_start_exe(ic->config); =================================================================== RCS file: /cvs/e/e_modules/mail/pop.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- pop.c 12 Jun 2006 10:03:52 -0000 1.2 +++ pop.c 12 Jun 2006 20:45:10 -0000 1.3 @@ -192,7 +192,7 @@ pc->config->num_new = num; pc->config->num_total = num; } - inst->count = num; + inst->count += num; _mail_pop_client_quit(pc); if ((num > 0) && (pc->config->use_exec) && (pc->config->exec)) _mail_start_exe(pc->config); =================================================================== RCS file: /cvs/e/e_modules/mail/mdir.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- mdir.c 12 Jun 2006 10:03:52 -0000 1.2 +++ mdir.c 12 Jun 2006 20:45:10 -0000 1.3 @@ -75,8 +75,9 @@ mc->config->num_total = _mail_mdir_get_files(mc->config->cur_path); mc->config->num_new = _mail_mdir_get_files(mc->config->new_path); + inst = mc->data; - inst->count = mc->config->num_new; + inst->count += mc->config->num_new; _mail_set_text(inst); if ((mc->config->num_new > 0) && (mc->config->use_exec) && (mc->config->exec)) _mail_start_exe(mc->config); =================================================================== RCS file: /cvs/e/e_modules/mail/mbox.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- mbox.c 12 Jun 2006 10:03:52 -0000 1.2 +++ mbox.c 12 Jun 2006 20:45:10 -0000 1.3 @@ -105,7 +105,7 @@ fclose(f); inst = mb->data; - inst->count = mb->config->num_new; + inst->count += mb->config->num_new; _mail_set_text(inst); if ((mb->config->num_new > 0) && (mb->config->use_exec) && (mb->config->exec)) _mail_start_exe(mb->config); =================================================================== RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- e_mod_main.c 12 Jun 2006 10:03:52 -0000 1.23 +++ e_mod_main.c 12 Jun 2006 20:45:10 -0000 1.24 @@ -487,6 +487,8 @@ int have_imap = 0, have_pop = 0; if (!inst) return 1; + inst->count = 0; + ci = _mail_config_item_get(inst->gcc->id); if (!ci->boxes) return 1; for (l = ci->boxes; l; l = l->next) _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs