From 586168de77aceb6c21c127f66b5e90a364ae1150 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 7 Jun 2006 21:15:06 +0000 Subject: [PATCH] Can only check mail via click if it's pop or imap. SVN revision: 23248 --- e_mod_main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/e_mod_main.c b/e_mod_main.c index 331764b..76d16c3 100644 --- a/e_mod_main.c +++ b/e_mod_main.c @@ -131,7 +131,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style) gcc->data = inst; inst->gcc = gcc; inst->mail_obj = o; - + if (ci->type == MAIL_TYPE_MDIR) inst->monitor = ecore_file_monitor_add(ci->path, _mail_mdir_check, inst); else if (ci->type == MAIL_TYPE_MBOX) @@ -247,7 +247,8 @@ _mail_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info) ev->timestamp); evas_event_feed_mouse_up(inst->gcc->gadcon->evas, ev->button, EVAS_BUTTON_NONE, ev->timestamp, NULL); } - else if ((ev->button == 1) && (inst)) + else if ((ev->button == 1) && (inst) && + ((ci->type == 0) || (ci->type == 1))) _mail_cb_check(inst); } @@ -796,8 +797,6 @@ _mail_set_text(void *data, int n, int t) inst = data; if (!inst) return; - printf("New: %d\n", n); - ci = _mail_config_item_get(inst->gcc->id); edje_object_part_text_set(inst->mail->mail_obj, "name", ci->user);