From 3718e5f58bcfba95a1e7eceaeb3f40a17650a2c9 Mon Sep 17 00:00:00 2001 From: tasn Date: Tue, 9 Aug 2011 11:55:00 +0000 Subject: [PATCH] Elm cnp: Use the existing ECORE_X_ATOM_SELECTION_CLIPBOARD. No need to fetch it. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@62253 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_cnp_helper.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/elm_cnp_helper.c b/src/lib/elm_cnp_helper.c index cddb58a..594463d 100644 --- a/src/lib/elm_cnp_helper.c +++ b/src/lib/elm_cnp_helper.c @@ -368,8 +368,6 @@ static void (*dragdonecb) (void *data, Evas_Object *obj) = NULL; static void *dragdonedata = NULL; static int _elm_cnp_init_count = 0; -/* FIXME: who left this out of XAtoms.h */ -static Ecore_X_Atom clipboard_atom; /** * Drag & Drop functions @@ -393,7 +391,7 @@ Eina_Bool elm_selection_selection_has_owner(void) { #ifdef HAVE_ELEMENTARY_X - return !!ecore_x_selection_owner_get(clipboard_atom); + return !!ecore_x_selection_owner_get(ECORE_X_ATOM_SELECTION_CLIPBOARD); #else return EINA_FALSE; #endif @@ -495,7 +493,6 @@ _elm_cnp_init(void) ecore_x_selection_converter_atom_add(atoms[i].atom, atoms[i].converter); } - clipboard_atom = ecore_x_atom_get("CLIPBOARD"); ecore_event_handler_add(ECORE_X_EVENT_SELECTION_CLEAR, selection_clear, NULL); ecore_event_handler_add(ECORE_X_EVENT_SELECTION_NOTIFY, selection_notify, NULL); -- 2.7.4