actually see the delete req in the thumbnailer

SVN revision: 23753
This commit is contained in:
Carsten Haitzler 2006-07-08 13:12:42 +00:00
parent 50063cad9c
commit 2bf3acac8b
2 changed files with 25 additions and 19 deletions

View File

@ -144,7 +144,11 @@ e_thumb_icon_end(Evas_Object *obj)
if (!eth) return;
if (eth->queued) _thumb_queue = evas_list_remove(_thumb_queue, eth);
eth->queued = 0;
if (eth->busy) _e_thumb_gen_end(eth->objid);
if (eth->busy)
{
printf("REQ DEL %s\n", eth->file);
_e_thumb_gen_end(eth->objid);
}
eth->busy = 0;
_pending--;
if (_pending == 0) _e_thumb_thumbnailers_kill();

View File

@ -146,28 +146,30 @@ _e_ipc_cb_server_data(void *data, int type, void *event)
e = event;
if (e->major != 5) return 1;
if (!e->data) return 1;
switch (e->minor)
{
case 1:
/* begin thumb */
/* don't check stuff. since this connects TO e17 it is connecting */
/* TO a trusted process that WILL send this message properly */
/* formatted. if the thumbnailer dies anyway - it's not a big loss */
/* but it is a sign of a bug in e formattign messages maybe */
file = e->data;
key = file + strlen(file) + 1;
if (!key[0]) key = NULL;
eth = calloc(1, sizeof(E_Thumb));
if (eth)
if (e->data)
{
eth->objid = e->ref;
eth->w = e->ref_to;
eth->h = e->response;
eth->file = strdup(file);
if (key) eth->key = strdup(key);
_thumblist = evas_list_append(_thumblist, eth);
if (!_timer) _timer = ecore_timer_add(0.001, _e_cb_timer, NULL);
/* begin thumb */
/* don't check stuff. since this connects TO e17 it is connecting */
/* TO a trusted process that WILL send this message properly */
/* formatted. if the thumbnailer dies anyway - it's not a big loss */
/* but it is a sign of a bug in e formattign messages maybe */
file = e->data;
key = file + strlen(file) + 1;
if (!key[0]) key = NULL;
eth = calloc(1, sizeof(E_Thumb));
if (eth)
{
eth->objid = e->ref;
eth->w = e->ref_to;
eth->h = e->response;
eth->file = strdup(file);
if (key) eth->key = strdup(key);
_thumblist = evas_list_append(_thumblist, eth);
if (!_timer) _timer = ecore_timer_add(0.001, _e_cb_timer, NULL);
}
}
break;
case 2: