From d62a36068ea5e7b1c70ac46b696930ce7163da78 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Sat, 10 Jun 2006 14:43:13 +0000 Subject: [PATCH] If we have no mail, clear all the text when setting no mail icon. Center the mail count in the edc. SVN revision: 23354 --- e_mod_main.c | 8 ++++++-- mail.edc | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/e_mod_main.c b/e_mod_main.c index 96d70da..aa8c720 100644 --- a/e_mod_main.c +++ b/e_mod_main.c @@ -952,8 +952,12 @@ _mail_set_text(void *data) if (count > 0) edje_object_signal_emit(inst->mail->mail_obj, "new_mail", ""); - else - edje_object_signal_emit(inst->mail->mail_obj, "no_mail", ""); + else + { + edje_object_signal_emit(inst->mail->mail_obj, "no_mail", ""); + edje_object_part_text_set(inst->mail->mail_obj, "name", ""); + edje_object_part_text_set(inst->mail->mail_obj, "new_label", ""); + } } static int diff --git a/mail.edc b/mail.edc index 37f44d4..c42de3e 100644 --- a/mail.edc +++ b/mail.edc @@ -105,7 +105,7 @@ collections font: "VeraBold"; size: 10; min: 1 1; - align: 1.0 0.5; + align: 0.5 0.5; text_class: "module_normal"; } }