summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHyoyoung Chang <hyoyoung@gmail.com>2012-01-02 11:04:40 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-01-02 11:04:40 +0000
commit835cf76e3e653031a791254c44c239511f342152 (patch)
tree03fd25f1f682472980d72ec8dc4e7e1c81abf758 /src
parentfc67742bf2a45e8ea1752130678bd2b3d4385fca (diff)
From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_cnp_helper - bugfix that dnd won't start Date: Mon, 2 Jan 2012 16:52:05 +0900 Dear all. elementary supports ecore_x dnd feature. But currently eocre_x_dnd_aware_set isn't set by default Its patch fixes this bug. Thank you SVN revision: 66740
Diffstat (limited to 'src')
-rw-r--r--src/lib/elm_cnp_helper.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/elm_cnp_helper.c b/src/lib/elm_cnp_helper.c
index 81c722623..026a6f6cc 100644
--- a/src/lib/elm_cnp_helper.c
+++ b/src/lib/elm_cnp_helper.c
@@ -1555,10 +1555,12 @@ elm_drop_target_del(Evas_Object *obj)
1555 1555
1556 1556
1557static void 1557static void
1558_drag_mouse_up(void *un __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *data __UNUSED__) 1558_drag_mouse_up(void *un __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *data)
1559{ 1559{
1560 Ecore_X_Window xwin = *((Ecore_X_Window *)data);
1560 evas_object_event_callback_del(obj, EVAS_CALLBACK_MOUSE_UP, _drag_mouse_up); 1561 evas_object_event_callback_del(obj, EVAS_CALLBACK_MOUSE_UP, _drag_mouse_up);
1561 ecore_x_dnd_drop(); 1562 ecore_x_dnd_drop();
1563 ecore_x_dnd_aware_set(xwin, EINA_FALSE);
1562 if (dragdonecb) 1564 if (dragdonecb)
1563 { 1565 {
1564 dragdonecb(dragdonecb,selections[ELM_SEL_TYPE_XDND].widget); 1566 dragdonecb(dragdonecb,selections[ELM_SEL_TYPE_XDND].widget);
@@ -1606,10 +1608,11 @@ elm_drag_start(Evas_Object *obj, Elm_Sel_Format format, const char *data, void (
1606 dragdonecb = dragdone; 1608 dragdonecb = dragdone;
1607 dragdonedata = donecbdata; 1609 dragdonedata = donecbdata;
1608 1610
1611 ecore_x_dnd_aware_set(xwin, EINA_TRUE);
1609 ecore_x_dnd_callback_pos_update_set(_drag_move, NULL); 1612 ecore_x_dnd_callback_pos_update_set(_drag_move, NULL);
1610 ecore_x_dnd_begin(xwin, (unsigned char *)&xdnd, sizeof(Elm_Sel_Type)); 1613 ecore_x_dnd_begin(xwin, (unsigned char *)&xdnd, sizeof(Elm_Sel_Type));
1611 evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_UP, 1614 evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_UP,
1612 _drag_mouse_up, NULL); 1615 _drag_mouse_up, (void *)xwin);
1613 1616
1614 handler_status = ecore_event_handler_add(ECORE_X_EVENT_XDND_STATUS, 1617 handler_status = ecore_event_handler_add(ECORE_X_EVENT_XDND_STATUS,
1615 _dnd_status, NULL); 1618 _dnd_status, NULL);