summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiyoun Park <jy0703.park@samsung.com>2017-07-31 15:16:38 +0900
committerJiyoun Park <jy0703.park@samsung.com>2017-07-31 15:20:02 +0900
commitca625aa323fcf3c40a660cf693fd30d1d737f13a (patch)
treec46d1b734f88a44651c39eede08172c882dd748a
parentc5a5302e069ad1e624319ca17c17ecfb8634c9c6 (diff)
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.
-rw-r--r--src/lib/elementary/efl_ui_win.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index b8558571a8..47881cd3cd 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -6458,6 +6458,7 @@ EOLIAN static Eina_Bool
6458_efl_ui_win_socket_listen(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char *svcname, int svcnum, Eina_Bool svcsys) 6458_efl_ui_win_socket_listen(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char *svcname, int svcnum, Eina_Bool svcsys)
6459{ 6459{
6460 if (!sd->ee) return EINA_FALSE; 6460 if (!sd->ee) return EINA_FALSE;
6461 if (sd->type != EFL_UI_WIN_SOCKET_IMAGE) return EINA_FALSE;
6461 6462
6462 if (!ecore_evas_extn_socket_listen(sd->ee, svcname, svcnum, svcsys)) 6463 if (!ecore_evas_extn_socket_listen(sd->ee, svcname, svcnum, svcsys))
6463 return EINA_FALSE; 6464 return EINA_FALSE;