summaryrefslogtreecommitdiff
path: root/src/lib/elm_photo.c
diff options
context:
space:
mode:
authorHyoyoung Chang <hyoyoung@gmail.com>2012-01-03 04:44:48 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-01-03 04:44:48 +0000
commitd7fbec35e5eb2207c0f8b749c080b553d9ac1ba0 (patch)
treed2fd3c05cdd7cd4ba6cd0d20402f18cb6781b029 /src/lib/elm_photo.c
parent56224b15d3443e204e6aa4dd27b9c25bb4d67054 (diff)
From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_cnp_helper - bugfix duplicated drag objs Date: Tue, 3 Jan 2012 13:41:09 +0900 Dear all. Currently, dragging is only supported in elm_photo. Normally it works well but in overlapped region, elm_photo makes multiple drag events. However multiple objs dragging isn't supported by elm_cnp_helper(also in xdnd specs) It better to block multiple dragging events. Also I fixed dragdonecb's data argument position. Thank you. SVN revision: 66773
Diffstat (limited to '')
-rw-r--r--src/lib/elm_photo.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/elm_photo.c b/src/lib/elm_photo.c
index f54e7a16b..f76ae43c9 100644
--- a/src/lib/elm_photo.c
+++ b/src/lib/elm_photo.c
@@ -189,13 +189,14 @@ _longpress(void *objv)
189 /* FIXME: Deal with relative paths */ 189 /* FIXME: Deal with relative paths */
190 buf = malloc(strlen(file) + strlen("file://") + 1); 190 buf = malloc(strlen(file) + strlen("file://") + 1);
191 sprintf(buf, "%s%s","file://",file); 191 sprintf(buf, "%s%s","file://",file);
192 elm_drag_start(objv, ELM_SEL_FORMAT_IMAGE, 192 if (elm_drag_start(objv, ELM_SEL_FORMAT_IMAGE,
193 buf, _drag_done_cb, NULL); 193 buf, _drag_done_cb, NULL))
194 {
195 elm_object_scroll_freeze_push(objv);
196 evas_object_smart_callback_call(objv, SIG_DRAG_START, NULL);
197 }
194 free(buf); 198 free(buf);
195 } 199 }
196 elm_object_scroll_freeze_push(objv);
197
198 evas_object_smart_callback_call(objv, SIG_DRAG_START, NULL);
199 200
200 return 0; /* Don't call again */ 201 return 0; /* Don't call again */
201} 202}