Dear Elementary developers.
I've made a patch about elm_cnp_helper.
When using elm_selection_get, a user can set own handling function.
It works on html type and image type.
However elm_cnp_helper missed text type handling.
It's small patch about it.
Thank you.
----------------------------------
Hyoyoung CHANG
Engineer
SAMSUNG ELECTRONICS, Co., Ltd.
E-mail: [email protected]
----------------------------------
Index: elm_cnp_helper.c
===================================================================
--- elm_cnp_helper.c (리ë¹ì 60392)
+++ elm_cnp_helper.c (ìì
ì¬ë³¸)
@@ -719,6 +719,19 @@
char *str;
data = notify->data;
+
+ if (sel->datacb)
+ {
+ Elm_Selection_Data ddata;
+
+ ddata.x = ddata.y = 0;
+ ddata.format = ELM_SEL_FORMAT_TEXT;
+ ddata.data = data->data;
+ ddata.len = data->length;
+ sel->datacb(sel->udata, sel->widget, &ddata);
+ return 0;
+ }
+
cnp_debug("Notify handler text %d %d %p\n", data->format,data->length,
data->data);
str = mark_up((char *)data->data, data->length, NULL);
cnp_debug("String is %s (from %s)\n", str, data->data);
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel