E_LIST_HANDLER_APPEND now assert()s the event handler

SVN revision: 82521
This commit is contained in:
Mike Blumenkrantz 2013-01-10 08:09:46 +00:00
parent 8345d7d6d4
commit 7a7ceb7429
3 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2013-01-10 Mike Blumenkrantz
* E_LIST_HANDLER_APPEND macro now asserts the event handler to make debugging easier
2013-01-10 Deon Thomas
* Fixed bug with desktop config profile where conf module version variable was misnamed

1
NEWS
View File

@ -50,6 +50,7 @@ Improvements:
* "System Default" language in wizard now displays which language it is and no longer removes language from list
* Desktop->Shelves menu now shows shelf names
* geometry_auto_move option now also corrects applications which fail in their attempts to center windows
* E_LIST_HANDLER_APPEND macro now asserts the event handler to make debugging easier
Fixes:
* Force check changed upon confirmation dialog closure for engine settings.

View File

@ -213,10 +213,8 @@ typedef struct _E_Rect E_Rect;
{ \
Ecore_Event_Handler *_eh; \
_eh = ecore_event_handler_add(type, (Ecore_Event_Handler_Cb)callback, data); \
if (_eh) \
list = eina_list_append(list, _eh); \
else \
fprintf(stderr, "E_LIST_HANDLER_APPEND\n"); \
assert(_eh); \
list = eina_list_append(list, _eh); \
} \
while (0)