Make sure a deleted message is sent.

SVN revision: 14244
This commit is contained in:
sebastid 2005-04-19 09:05:53 +00:00 committed by sebastid
parent 7dd1e35ece
commit 81d83c1757
1 changed files with 9 additions and 17 deletions

View File

@ -857,23 +857,15 @@ _e_app_subdir_rescan(E_App *app)
}
if (a2)
{
if (a2->deleted)
{
/* Just unref it, so it will be deleted */
e_object_unref(E_OBJECT(a2));
}
else
{
a2->deleted = 1;
ch = calloc(1, sizeof(E_App_Change_Info));
ch->app = a2;
ch->change = E_APP_DEL;
/* We don't need to ref this,
* it has an extra ref
e_object_ref(E_OBJECT(ch->app));
*/
changes = evas_list_append(changes, ch);
}
a2->deleted = 1;
ch = calloc(1, sizeof(E_App_Change_Info));
ch->app = a2;
ch->change = E_APP_DEL;
/* We don't need to ref this,
* it has an extra ref
e_object_ref(E_OBJECT(ch->app));
*/
changes = evas_list_append(changes, ch);
}
}
/* FIXME: We only need to tell about order changes if there are! */