projects
/
rodin
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented the 'waiting' signal on the ChimaraGlk widget to let listeners know when...
[rodin/chimara.git]
/
libchimara
/
event.c
diff --git
a/libchimara/event.c
b/libchimara/event.c
index ca5e21aac58a874dd7a28a1ebc968601e925deab..5da6dd8e5058c60f97dbcbfaad265167ee36c561 100644
(file)
--- a/
libchimara/event.c
+++ b/
libchimara/event.c
@@
-70,6
+70,9
@@
glk_select(event_t *event)
ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key);
ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key);
+ /* Emit the "waiting" signal to let listeners know we are ready for input */
+ g_signal_emit_by_name(glk_data->self, "waiting");
+
g_mutex_lock(glk_data->event_lock);
/* Wait for an event */
g_mutex_lock(glk_data->event_lock);
/* Wait for an event */
@@
-200,4
+203,4
@@
glk_select_poll(event_t *event)
/* If an abort event was generated, the thread should have exited by now */
g_assert(event->type != evtype_Abort);
/* If an abort event was generated, the thread should have exited by now */
g_assert(event->type != evtype_Abort);
-}
\ No newline at end of file
+}