diff --git a/experimental/ecdb/trunk/src/ecdb_burn_data_gui.c b/experimental/ecdb/trunk/src/ecdb_burn_data_gui.c index d0c1dc9f..cf26e5da 100644 --- a/experimental/ecdb/trunk/src/ecdb_burn_data_gui.c +++ b/experimental/ecdb/trunk/src/ecdb_burn_data_gui.c @@ -11,9 +11,21 @@ _update_capacity(void *data, int type, void *ev_data) { Ecdb_Source *src; Evas_Object *o; + Edje_Message_Float msg; o = data; src = evas_object_data_get(o, "source"); + // FIXME use actual disc capacity here + msg.val = (float)src->size / 1048576.0 / 700.0; + if (msg.val > 1.0) + { + printf("OVER SIZE LIMIT!\n"); + } + else + { + printf("size: %lld, calced size: %f\n", src->size, msg.val); + } + edje_object_message_send(o, EDJE_MESSAGE_FLOAT, 1, &msg); return ECORE_CALLBACK_RENEW; }