fix windows build
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 31 Jan 2011 08:00:03 +0000 (08:00 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 31 Jan 2011 08:00:03 +0000 (08:00 +0000)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@56570 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_entry.c

index 9f08458..c715199 100644 (file)
@@ -163,7 +163,9 @@ struct _Elm_Entry_Text_Filter
 
 static const char *widtype = NULL;
 
+#ifdef HAVE_ELEMENTARY_X
 static Eina_Bool _drag_drop_cb(void *data, Evas_Object *obj, Elm_Selection_Data *);
+#endif
 static void _del_hook(Evas_Object *obj);
 static void _theme_hook(Evas_Object *obj);
 static void _disable_hook(Evas_Object *obj);
@@ -2767,7 +2769,9 @@ elm_entry_cnp_textonly_set(Evas_Object *obj, Eina_Bool textonly)
    if (wd->textonly == textonly) return;
    wd->textonly = !!textonly;
    if (!textonly) format |= ELM_SEL_FORMAT_IMAGE;
+#ifdef HAVE_ELEMENTARY_X
    elm_drop_target_add(obj, format, _drag_drop_cb, NULL);
+#endif
 }
 
 /**