forked from enlightenment/efl
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:
parent
1b3f3822fd
commit
394d2225cf
|
@ -32,6 +32,8 @@ typedef int (*Notify_Handler_Cb) (Cnp_Selection *sel, Ecore_X_Event_Sele
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
CNP_ATOM_TARGETS = 0,
|
CNP_ATOM_TARGETS = 0,
|
||||||
|
CNP_ATOM_ATOM,
|
||||||
|
CNP_ATOM_LISTING_ATOMS = CNP_ATOM_ATOM,
|
||||||
CNP_ATOM_text_uri,
|
CNP_ATOM_text_uri,
|
||||||
CNP_ATOM_text_urilist,
|
CNP_ATOM_text_urilist,
|
||||||
CNP_ATOM_text_x_vcard,
|
CNP_ATOM_text_x_vcard,
|
||||||
|
@ -170,6 +172,14 @@ static Cnp_Atom atoms[CNP_N_ATOMS] = {
|
||||||
notify_handler_targets,
|
notify_handler_targets,
|
||||||
0
|
0
|
||||||
},
|
},
|
||||||
|
[CNP_ATOM_ATOM] = {
|
||||||
|
"ATOM",
|
||||||
|
(Elm_Sel_Format) -1, // everything
|
||||||
|
targets_converter,
|
||||||
|
response_handler_targets,
|
||||||
|
notify_handler_targets,
|
||||||
|
0
|
||||||
|
},
|
||||||
[CNP_ATOM_XELM] = {
|
[CNP_ATOM_XELM] = {
|
||||||
"application/x-elementary-markup",
|
"application/x-elementary-markup",
|
||||||
ELM_SEL_FORMAT_MARKUP,
|
ELM_SEL_FORMAT_MARKUP,
|
||||||
|
@ -672,7 +682,7 @@ notify_handler_targets(Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notif
|
||||||
targets = notify->data;
|
targets = notify->data;
|
||||||
atomlist = (Ecore_X_Atom *)(targets->data.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);
|
cnp_debug("\t%s %d\n", atoms[j].name, atoms[j].atom);
|
||||||
if (!(atoms[j].formats & sel->requestformat)) continue;
|
if (!(atoms[j].formats & sel->requestformat)) continue;
|
||||||
|
|
Loading…
Reference in New Issue