From: Hyoyoung Chang <hyoyoung.chang@samsung.com>

Subject: [E-devel] [patch] elm_cnp_helper - add ATOM handling
Date: Wed, 28 Sep 2011 15:42:20 +0900

blah blah blah, this fixes cnp compatibility with some apps good work hyoyoung


SVN revision: 63639
This commit is contained in:
Hyoyoung Chang 2011-09-28 06:48:44 +00:00 committed by Mike Blumenkrantz
parent 1b3f3822fd
commit 394d2225cf
1 changed files with 11 additions and 1 deletions

View File

@ -32,6 +32,8 @@ typedef int (*Notify_Handler_Cb) (Cnp_Selection *sel, Ecore_X_Event_Sele
enum
{
CNP_ATOM_TARGETS = 0,
CNP_ATOM_ATOM,
CNP_ATOM_LISTING_ATOMS = CNP_ATOM_ATOM,
CNP_ATOM_text_uri,
CNP_ATOM_text_urilist,
CNP_ATOM_text_x_vcard,
@ -170,6 +172,14 @@ static Cnp_Atom atoms[CNP_N_ATOMS] = {
notify_handler_targets,
0
},
[CNP_ATOM_ATOM] = {
"ATOM",
(Elm_Sel_Format) -1, // everything
targets_converter,
response_handler_targets,
notify_handler_targets,
0
},
[CNP_ATOM_XELM] = {
"application/x-elementary-markup",
ELM_SEL_FORMAT_MARKUP,
@ -672,7 +682,7 @@ notify_handler_targets(Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notif
targets = notify->data;
atomlist = (Ecore_X_Atom *)(targets->data.data);
for (j = 1; j < CNP_N_ATOMS; j++)
for (j = (CNP_ATOM_LISTING_ATOMS+1); j < CNP_N_ATOMS; j++)
{
cnp_debug("\t%s %d\n", atoms[j].name, atoms[j].atom);
if (!(atoms[j].formats & sel->requestformat)) continue;