forked from enlightenment/efl
efreet: trigger build event if no daemon
Since e waits for this event, trigger it if no daemon so e works without it. SVN revision: 80447
This commit is contained in:
parent
5130ed35c7
commit
17242f006a
|
@ -270,7 +270,7 @@ typedef struct _Efreet_Event_Cache_Update Efreet_Event_Cache_Update;
|
||||||
*/
|
*/
|
||||||
struct _Efreet_Event_Cache_Update
|
struct _Efreet_Event_Cache_Update
|
||||||
{
|
{
|
||||||
int dummy;
|
int error;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1061,10 +1061,18 @@ on_send_register(void *data __UNUSED__, const EDBus_Message *msg, EDBus_Pending
|
||||||
|
|
||||||
if (edbus_message_error_get(msg, &errname, &errmsg))
|
if (edbus_message_error_get(msg, &errname, &errmsg))
|
||||||
{
|
{
|
||||||
|
Efreet_Event_Cache_Update *ev = NULL;
|
||||||
|
|
||||||
ERR("%s %s", errname, errmsg);
|
ERR("%s %s", errname, errmsg);
|
||||||
return;
|
|
||||||
|
ev = NEW(Efreet_Event_Cache_Update, 1);
|
||||||
|
if (ev)
|
||||||
|
{
|
||||||
|
ev->error = 1;
|
||||||
|
ecore_event_add(EFREET_EVENT_DESKTOP_CACHE_BUILD, ev, NULL, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (edbus_message_arguments_get(msg, "b", &exists) && exists)
|
else if (edbus_message_arguments_get(msg, "b", &exists) && exists)
|
||||||
ecore_event_add(EFREET_EVENT_DESKTOP_CACHE_BUILD, NULL, NULL, NULL);
|
ecore_event_add(EFREET_EVENT_DESKTOP_CACHE_BUILD, NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue