Better labels for HandyAndE.. label will now show new/total, not seperate

labels for each.


SVN revision: 23283
master
Christopher Michael 17 years ago
parent 03ba707001
commit 61dfd566de
  1. 5
      e_mod_main.c
  2. 46
      mail.edc

@ -832,12 +832,9 @@ _mail_set_text(void *data, int n, int t)
ci = _mail_config_item_get(inst->gcc->id);
edje_object_part_text_set(inst->mail->mail_obj, "name", ci->user);
snprintf(buf, sizeof(buf), "New: %d", n);
snprintf(buf, sizeof(buf), "%d/%d", n, t);
edje_object_part_text_set(inst->mail->mail_obj, "new_label", buf);
snprintf(buf, sizeof(buf), "Total: %d", t);
edje_object_part_text_set(inst->mail->mail_obj, "total_label", buf);
if (n > 0)
edje_object_signal_emit(inst->mail->mail_obj, "new_mail", "");
else

@ -161,50 +161,6 @@ collections
color3: 255 255 255 42;
}
}
part
{
name: "total_label";
type: TEXT;
clip_to: "clip";
effect: SOFT_SHADOW;
mouse_events: 0;
description
{
state: "default" 0.0;
color: 0 0 0 255;
color3: 255 255 255 42;
visible: 0;
rel1
{
relative: 0.0 0.6;
offset: 0 0;
to: "logo";
}
rel2
{
relative: 1.0 0.8;
offset: -1 -1;
to: "logo";
}
text
{
text: "Total:";
font: "VeraBold";
size: 9;
min: 1 1;
align: 1.0 0.5;
text_class: "module_small";
}
}
description
{
state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
color: 0 0 0 255;
color3: 255 255 255 42;
}
}
}
programs
{
@ -217,7 +173,6 @@ collections
transition: SINUSOIDAL 0.5;
target: "name";
target: "new_label";
target: "total_label";
}
program
{
@ -236,7 +191,6 @@ collections
transition: SINUSOIDAL 1.0;
target: "name";
target: "new_label";
target: "total_label";
}
program
{

Loading…
Cancel
Save