elm_cnp: Fix build for windows (ecore_x)
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 20 May 2014 02:32:19 +0000 (11:32 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 20 May 2014 02:37:30 +0000 (11:37 +0900)
legacy/elementary/src/lib/elm_cnp.c

index 2d5f4b9..7c02611 100644 (file)
@@ -181,15 +181,19 @@ static Eina_List *cont_drag_tg = NULL; /* List of Item_Container_Drag_Info */
 static void _cont_obj_mouse_up( void *data, Evas *e, Evas_Object *obj, void *event_info);
 static void _cont_obj_mouse_move( void *data, Evas *e, Evas_Object *obj, void *event_info);
 static void _all_drop_targets_cbs_del(void *data, Evas *e, Evas_Object *obj, void *info);
+#ifdef HAVE_ELEMENTARY_X
 static Ecore_X_Window _x11_elm_widget_xwin_get(const Evas_Object *obj);
+#endif
 
 static Eina_Bool
 _drag_cancel_animate(void *data EINA_UNUSED, double pos)
 {  /* Animation to "move back" drag-window */
    if (pos >= 0.99)
      {
+#ifdef HAVE_ELEMENTARY_X
         Ecore_X_Window xdragwin = _x11_elm_widget_xwin_get(data);
         ecore_x_window_ignore_set(xdragwin, 0);
+#endif
         evas_object_del(data);
         return ECORE_CALLBACK_CANCEL;
      }
@@ -304,8 +308,6 @@ static Eina_Bool      _x11_dnd_leave                (void *data EINA_UNUSED, int
 static Eina_Bool      _x11_drag_mouse_up            (void *data, int etype EINA_UNUSED, void *event);
 static void           _x11_drag_move                (void *data EINA_UNUSED, Ecore_X_Xdnd_Position *pos);
 
-static Ecore_X_Window _x11_elm_widget_xwin_get           (const Evas_Object *obj);
-
 static Eina_Bool _x11_elm_cnp_init                       (void);
 static Eina_Bool _x11_elm_cnp_selection_set              (Ecore_X_Window xwin, Evas_Object *obj, Elm_Sel_Type selection, Elm_Sel_Format format, const void *selbuf, size_t buflen);
 static void      _x11_elm_cnp_selection_loss_callback_set(Evas_Object *obj EINA_UNUSED, Elm_Sel_Type selection, Elm_Selection_Loss_Cb func, const void *data);