From 355be0567341287ed1e491b862b5e3942b643915 Mon Sep 17 00:00:00 2001 From: Davide Andreoli Date: Tue, 24 Mar 2009 15:29:02 +0000 Subject: [PATCH] Simple notification when a file operation needs attention SVN revision: 39684 --- data/themes/default.edc | 21 ++++++++++++++++++++- src/modules/fileman/e_fwin.c | 5 +++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/data/themes/default.edc b/data/themes/default.edc index 71235fb97..c49654768 100644 --- a/data/themes/default.edc +++ b/data/themes/default.edc @@ -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 { diff --git a/src/modules/fileman/e_fwin.c b/src/modules/fileman/e_fwin.c index 422e2b096..6d7d4ff41 100644 --- a/src/modules/fileman/e_fwin.c +++ b/src/modules/fileman/e_fwin.c @@ -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?? }