efl_ui_win: add EFL_UI_WIN_SOCKET_IMAGE type check

elm_win_socket_listen api only work for EFL_UI_WIN_SOCKET_IMAGE type window.
    So it is better to add type check code.
This commit is contained in:
Jiyoun Park 2017-07-31 15:16:38 +09:00
parent c5a5302e06
commit ca625aa323
1 changed files with 1 additions and 0 deletions

View File

@ -6458,6 +6458,7 @@ EOLIAN static Eina_Bool
_efl_ui_win_socket_listen(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char *svcname, int svcnum, Eina_Bool svcsys)
{
if (!sd->ee) return EINA_FALSE;
if (sd->type != EFL_UI_WIN_SOCKET_IMAGE) return EINA_FALSE;
if (!ecore_evas_extn_socket_listen(sd->ee, svcname, svcnum, svcsys))
return EINA_FALSE;