expose the ability to process the message queue any time :)

SVN revision: 11606
This commit is contained in:
Carsten Haitzler 2004-09-11 02:41:23 +00:00
parent cbbc9f38fc
commit 4648c06858
2 changed files with 10 additions and 2 deletions

View File

@ -195,7 +195,9 @@ extern "C" {
/* edje_message_queue.c */
void edje_object_message_send (Evas_Object *obj, Edje_Message_Type type, int id, void *msg);
void edje_object_message_handler_set (Evas_Object *obj, void (*func) (void *data, Evas_Object *obj, Edje_Message_Type type, int id, void *msg), void *data);
void edje_message_signal_process (void);
#ifdef __cplusplus
}
#endif

View File

@ -24,6 +24,12 @@ edje_object_message_handler_set(Evas_Object *obj, void (*func) (void *data, Evas
_edje_message_cb_set(ed, func, data);
}
void
edje_message_signal_process(void)
{
_edje_message_queue_process();
}
static Evas_List *msgq = NULL;
static Evas_List *tmp_msgq = NULL;
@ -491,7 +497,7 @@ _edje_message_queue_process(void)
}
/* if the message queue filled again set a timer to expire in 0.0 sec */
/* to get the dle enterer to be run again */
/* to get the idle enterer to be run again */
if (msgq)
ecore_timer_add(0.0, _edje_dummy_timer, NULL);
}