aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorJiyoun Park <jijibe99@gmail.com>2012-01-16 17:18:20 +0000
committerJiyoun Park <jijibe99@gmail.com>2012-01-16 17:18:20 +0000
commitc54c6c1ae92c030c3e6424bb8e30a12a1282949c (patch)
tree45bd06b867997edd6da3637e789b122ec122e98f /legacy/elementary/src/lib/elm_win.c
parentI forgot this. (diff)
downloadefl-c54c6c1ae92c030c3e6424bb8e30a12a1282949c.tar.gz
Add new widget for extn socket and plug.
application can use ecore extn socket easyily by using elm_window_add with ELM_WIN_SOCKET_IMAGE style. And new widget Elm plug is similar with Elm image. it can show socket's image using connect API. I add test code also(test_win_socket/plug). SVN revision: 67245
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 588c1af64f..37aa6ab175 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -1545,6 +1545,11 @@ elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type)
win->img_obj = NULL;
}
break;
+
+ case ELM_WIN_SOCKET_IMAGE:
+ win->ee = ecore_evas_extn_socket_new(1, 1);
+ break;
+
default:
if (ENGINE_COMPARE(ELM_SOFTWARE_X11))
{
@@ -2884,6 +2889,24 @@ elm_win_inwin_content_unset(Evas_Object *obj)
return content;
}
+EAPI Eina_Bool
+elm_win_socket_listen(Evas_Object *obj, const char *svcname, int svcnum, Eina_Bool svcsys)
+{
+
+ Elm_Win *win;
+ Ecore_Evas *ee = NULL;
+
+ ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
+ win = elm_widget_data_get(obj);
+ if (!win) return EINA_FALSE;
+ if (!win->ee) return EINA_FALSE;
+
+ if(!ecore_evas_extn_socket_listen(win->ee, svcname, svcnum, svcsys))
+ return EINA_FALSE;
+
+ return EINA_TRUE;
+}
+
/* windowing spcific calls - shall we do this differently? */
static Ecore_X_Window