elm win: Refactoring. Use shorter/cleaner code.

SVN revision: 79393
This commit is contained in:
Daniel Juyung Seo 2012-11-16 14:26:01 +00:00
parent 7c3b90dc72
commit 090417500a
1 changed files with 4 additions and 10 deletions

View File

@ -2596,16 +2596,10 @@ elm_win_add(Evas_Object *parent,
_win_inlined_image_set(sd);
#ifdef HAVE_ELEMENTARY_X
else if (ENGINE_COMPARE(ELM_SOFTWARE_X11))
sd->x.client_message_handler = ecore_event_handler_add
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
else if (ENGINE_COMPARE(ELM_SOFTWARE_16_X11))
sd->x.client_message_handler = ecore_event_handler_add
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
else if (ENGINE_COMPARE(ELM_SOFTWARE_8_X11))
sd->x.client_message_handler = ecore_event_handler_add
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
else if (ENGINE_COMPARE(ELM_OPENGL_X11))
else if (ENGINE_COMPARE(ELM_SOFTWARE_X11) ||
ENGINE_COMPARE(ELM_SOFTWARE_16_X11) ||
ENGINE_COMPARE(ELM_SOFTWARE_8_X11) ||
ENGINE_COMPARE(ELM_OPENGL_X11))
sd->x.client_message_handler = ecore_event_handler_add
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
#endif