seoz pushed a commit to branch master.
commit 00a8a443485df88463acf79c25c1d1f071e5b0f4
Author: Alex Wu <[email protected]>
Date: Thu Jun 27 10:28:12 2013 +0900
elm_cnp: Fix building issue when not defined HAVE_ELEMENTARY_X
Put the static function that will be used both by wayland
and x11 at the common place.
---
src/lib/elm_cnp.c | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 111819b..035d8e7 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -172,6 +172,25 @@ 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 Eina_Bool
+_drag_cancel_animate(void *data __UNUSED__, double pos)
+{ /* Animation to "move back" drag-window */
+ if (pos >= 0.99)
+ {
+ evas_object_del(data);
+ return ECORE_CALLBACK_CANCEL;
+ }
+ else
+ {
+ int x, y;
+ x = dragwin_x_end - (pos * (dragwin_x_end - dragwin_x_start));
+ y = dragwin_y_end - (pos * (dragwin_y_end - dragwin_y_start));
+ evas_object_move(data, x, y);
+ }
+
+ return ECORE_CALLBACK_RENEW;
+}
+
#ifdef HAVE_ELEMENTARY_X
static Tmp_Info *_tempfile_new (int size);
static int _tmpinfo_free (Tmp_Info *tmp);
@@ -1509,25 +1528,6 @@ _x11_dnd_status(void *data __UNUSED__, int etype
__UNUSED__, void *ev)
}
static Eina_Bool
-_drag_cancel_animate(void *data __UNUSED__, double pos)
-{ /* Animation to "move back" drag-window */
- if (pos >= 0.99)
- {
- evas_object_del(data);
- return ECORE_CALLBACK_CANCEL;
- }
- else
- {
- int x, y;
- x = dragwin_x_end - (pos * (dragwin_x_end - dragwin_x_start));
- y = dragwin_y_end - (pos * (dragwin_y_end - dragwin_y_start));
- evas_object_move(data, x, y);
- }
-
- return ECORE_CALLBACK_RENEW;
-}
-
-static Eina_Bool
_x11_drag_mouse_up(void *data, int etype __UNUSED__, void *event)
{
Ecore_X_Window xwin = (Ecore_X_Window)(long)data;
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev