elm_cnp: Whitespace Cleanup

SVN revision: 53555
This commit is contained in:
Brett Nash 2010-10-18 04:48:38 +00:00
parent 0fea7241c8
commit bf0fce54c8
2 changed files with 2 additions and 41 deletions

View File

@ -466,45 +466,6 @@ cnp_debug("selection %d clear\n",i);
return ECORE_CALLBACK_PASS_ON;
}
#if 0
/**
* Response to a selection request
*/
static Eina_Bool
selection_request(void *udata __UNUSED__, int type, void *event){
Ecore_X_Event_Selection_Request *ev = event;
struct _elm_cnp_selection *sel;
int i;
printf("selection request callback: %d\n",ev->selection);
printf("selection request callback: %d\n",ev->target);
if (ev->selection == clipboard_atom){
sel = selections + ELM_SEL_CLIPBOARD;
} else if (ev->selection == XA_PRIMARY){
sel = selections + ELM_SEL_PRIMARY;
} else if (ev->selection == XA_SECONDARY){
sel = selections + ELM_SEL_SECONDARY;
} else {
return ECORE_CALLBACK_PASS_ON;
}
return ECORE_CALLBACK_PASS_ON;
for (i = 0 ; i < CNP_N_ATOMS ; i ++)
{
if (ev->target == atoms[i].atom)
{
if (atoms[i].response){
atoms[i].response(sel, ev);
} else {
printf("Ignored: No handler!\n");
}
}
}
return ECORE_CALLBACK_PASS_ON;
}
#endif
/*
* Response to a selection notify: