From bf0fce54c8c958eef82014834f3705732163896a Mon Sep 17 00:00:00 2001 From: Brett Nash Date: Mon, 18 Oct 2010 04:48:38 +0000 Subject: [PATCH] elm_cnp: Whitespace Cleanup SVN revision: 53555 --- legacy/elementary/src/lib/elm_cnp_helper.c | 41 +--------------------- legacy/elementary/src/lib/elm_widget.h | 2 +- 2 files changed, 2 insertions(+), 41 deletions(-) diff --git a/legacy/elementary/src/lib/elm_cnp_helper.c b/legacy/elementary/src/lib/elm_cnp_helper.c index 54897459bc..f6fe1bf87e 100644 --- a/legacy/elementary/src/lib/elm_cnp_helper.c +++ b/legacy/elementary/src/lib/elm_cnp_helper.c @@ -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: diff --git a/legacy/elementary/src/lib/elm_widget.h b/legacy/elementary/src/lib/elm_widget.h index 9d3cd38f0b..97bcd49b5e 100644 --- a/legacy/elementary/src/lib/elm_widget.h +++ b/legacy/elementary/src/lib/elm_widget.h @@ -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);"