Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : mail
Dir : e_modules/mail
Modified Files:
e_mod_main.c
Log Message:
Don't launch exec unless there is new mail.
===================================================================
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_mod_main.c 7 Jun 2006 21:47:57 -0000 1.3
+++ e_mod_main.c 7 Jun 2006 22:20:21 -0000 1.4
@@ -629,6 +629,7 @@
_mail_set_text(inst, num, num);
if ((ci->use_exec) && (ci->exec != NULL))
{
+ if (num <= 0) break;
if (!inst->exe)
{
inst->exit_handler =
ecore_event_handler_add(ECORE_EXE_EVENT_DEL, _mail_cb_exe_exit, inst);
@@ -850,11 +851,9 @@
if (!inst->gcc->id) continue;
if (!strcmp(inst->gcc->id, ci->id))
{
+ if (inst->check_timer) ecore_timer_del(inst->check_timer);
if ((ci->type == 0) || (ci->type == 1))
- {
- if (inst->check_timer) ecore_timer_del(inst->check_timer);
- inst->check_timer = ecore_timer_add((ci->check_time * 60.0),
_mail_cb_check, inst);
- }
+ inst->check_timer = ecore_timer_add((ci->check_time * 60.0),
_mail_cb_check, inst);
if (ci->show_label)
edje_object_signal_emit(inst->mail_obj, "label_active", "");
@@ -863,5 +862,4 @@
break;
}
}
-
}
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs