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

@ -454,7 +454,7 @@ selection_clear(void *udata __UNUSED__, int type __UNUSED__, void *event){
{
if (selections[i].ecore_sel == ev->selection) break;
}
cnp_debug("selection %d clear\n",i);
cnp_debug("selection %d clear\n",i);
/* Not me... Don't care */
if (i == ELM_SEL_MAX) return ECORE_CALLBACK_PASS_ON;
@ -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:

View File

@ -176,7 +176,7 @@
*
*/
#ifndef ELM_INTERAL_API_MDFGELQ
#ifndef ELM_INTERAL_API_MDFGELQ
# warning "You are using an internal elementary API. This API is not stable"
# warning "and is subject to change. You use this at your own risk."
# warning "Remember to call elm_widget_api_check(ELM_INTERNAL_API_VERSION);"