forked from enlightenment/efl
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:
parent
c5a5302e06
commit
ca625aa323
|
@ -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)
|
_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->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))
|
if (!ecore_evas_extn_socket_listen(sd->ee, svcname, svcnum, svcsys))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue