Simple notification when a file operation needs attention

SVN revision: 39684
This commit is contained in:
Davide Andreoli 2009-03-24 15:29:02 +00:00
parent 9d6e1a6542
commit 355be05673
2 changed files with 25 additions and 1 deletions

View File

@ -11270,7 +11270,12 @@ collections { /* begin the collection of edje groups that are in this file */
description { state: "default" 0.0;
rel1.offset: 3 3;
rel2.offset: -4 -4;
color: 255 0 0 200;
color: 100 100 100 200;
}
description { state: "need_attention" 0.0;
rel1.offset: 3 3;
rel2.offset: -4 -4;
color: 150 0 0 200;
}
}
part { name: "gauge_bg";
@ -11408,6 +11413,20 @@ collections { /* begin the collection of edje groups that are in this file */
}
}
}
programs {
program { name: "set_need_attention";
signal: "e,action,set,need_attention";
source: "e";
action: STATE_SET "need_attention" 0.0;
target: "bg";
}
program { name: "set_normal";
signal: "e,action,set,normal";
source: "e";
action: STATE_SET "default" 0.0;
target: "bg";
}
}
}
group { name: "e/fileman/default/scrollframe";
images {

View File

@ -350,6 +350,11 @@ _e_fwin_op_registry_listener_cb(void *data, const E_Fm2_Op_Registry_Entry *ere)
//~ edje_object_part_text_set(o, "e.text.label5", dir);
//~ E_FREE(dir);
if (ere->needs_attention)
edje_object_signal_emit(o, "e,action,set,need_attention", "e");
else
edje_object_signal_emit(o, "e,action,set,normal", "e");
//evas_object_raise(fwin->box_obj); //TODO use layer??
}