summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2013-11-28 16:05:28 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2013-11-28 16:24:01 +0200
commit63a237939e200722fa054b5f818601860327fac9 (patch)
treef9eaa1f6768e3fd84b2045d9b6dafb1c7e7b5615 /src
parent7b13aa26890573a3e9f59b204a4f31cc79d1ea07 (diff)
Add callback when drag start in item containers
Diffstat (limited to 'src')
-rw-r--r--src/lib/elm_cnp.c1
-rw-r--r--src/lib/elm_cnp.h11
2 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 5baeac4d9..8cc5e59c1 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -3950,6 +3950,7 @@ _cont_obj_drag_start(void *data)
3950 Item_Container_Drag_Info *st = data; 3950 Item_Container_Drag_Info *st = data;
3951 st->tm = NULL; 3951 st->tm = NULL;
3952 Elm_Drag_User_Info *info = &st->user_info; 3952 Elm_Drag_User_Info *info = &st->user_info;
3953 if (info->dragstart) info->dragstart(info->startcbdata, st->obj);
3953 elm_widget_scroll_freeze_push(st->obj); 3954 elm_widget_scroll_freeze_push(st->obj);
3954 evas_object_event_callback_del_full 3955 evas_object_event_callback_del_full
3955 (st->obj, EVAS_CALLBACK_MOUSE_MOVE, _cont_obj_mouse_move, st); 3956 (st->obj, EVAS_CALLBACK_MOUSE_MOVE, _cont_obj_mouse_move, st);
diff --git a/src/lib/elm_cnp.h b/src/lib/elm_cnp.h
index efcb256e7..a24deb98e 100644
--- a/src/lib/elm_cnp.h
+++ b/src/lib/elm_cnp.h
@@ -188,6 +188,15 @@ typedef void (*Elm_Drag_Accept) (void *data, Evas_Object *obj, Eina_Bool doaccep
188typedef void (*Elm_Drag_Pos) (void *data, Evas_Object *obj, Evas_Coord x, Evas_Coord y, Elm_Xdnd_Action action); 188typedef void (*Elm_Drag_Pos) (void *data, Evas_Object *obj, Evas_Coord x, Evas_Coord y, Elm_Xdnd_Action action);
189 189
190/** 190/**
191 * Callback called when a drag starts from an item container
192 *
193 * @param data Application specific data
194 * @param obj The object where the drag started
195 * @since 1.8
196 */
197typedef void (*Elm_Drag_Start) (void *data, Evas_Object *obj);
198
199/**
191 * @brief Set copy data for a widget. 200 * @brief Set copy data for a widget.
192 * 201 *
193 * Set copy data and take ownership of selection. Format is used for specifying the selection type, 202 * Set copy data and take ownership of selection. Format is used for specifying the selection type,
@@ -424,6 +433,8 @@ struct _Elm_Drag_User_Info
424 Elm_Xdnd_Action action; 433 Elm_Xdnd_Action action;
425 Elm_Drag_Icon_Create_Cb createicon; 434 Elm_Drag_Icon_Create_Cb createicon;
426 void *createdata; 435 void *createdata;
436 Elm_Drag_Start dragstart;
437 void *startcbdata;
427 Elm_Drag_Pos dragpos; 438 Elm_Drag_Pos dragpos;
428 void *dragdata; 439 void *dragdata;
429 Elm_Drag_Accept acceptcb; 440 Elm_Drag_Accept acceptcb;