aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_photo.c
diff options
context:
space:
mode:
authorBrett Nash <nash@nash.id.au>2010-09-10 08:24:29 +0000
committerBrett Nash <nash@nash.id.au>2010-09-10 08:24:29 +0000
commitaf8097a963908b69de8d353f13944050b84e041a (patch)
treee2e163f022e9c250e4d8754309f344003929a91f /legacy/elementary/src/bin/test_photo.c
parentUse hold flag for detecting drags. (diff)
downloadefl-af8097a963908b69de8d353f13944050b84e041a.tar.gz
Elm photo stops scrolling events when dragging now.
SVN revision: 52129
Diffstat (limited to 'legacy/elementary/src/bin/test_photo.c')
-rw-r--r--legacy/elementary/src/bin/test_photo.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_photo.c b/legacy/elementary/src/bin/test_photo.c
index 70ba2b4a6b..78acb813ed 100644
--- a/legacy/elementary/src/bin/test_photo.c
+++ b/legacy/elementary/src/bin/test_photo.c
@@ -2,6 +2,8 @@
#ifndef ELM_LIB_QUICKLAUNCH
static void drop_cb(void *mydata, Evas_Object *obj, void *evdata);
+static void drag_stop_cb(void *mydata, Evas_Object *obj, void *evdata);
+static void drag_start_cb(void *mydata, Evas_Object *obj, void *evdata);
void
test_photo(void *data, Evas_Object *obj, void *event_info)
@@ -53,6 +55,11 @@ test_photo(void *data, Evas_Object *obj, void *event_info)
EVAS_HINT_FILL);
evas_object_smart_callback_add(ph, "drop",
drop_cb, NULL);
+ evas_object_smart_callback_add(ph, "drag,start",
+ drag_start_cb, NULL);
+ evas_object_smart_callback_add(ph, "drag,stop",
+ drag_stop_cb, NULL);
+
if(n == 2 || n == 3) {
elm_photo_fill_inside_set(ph, EINA_TRUE);
elm_widget_style_set(ph, "shadow");
@@ -79,5 +86,15 @@ drop_cb(void *mydata, Evas_Object *obj, void *evdata){
printf("Drop on obj %p: Image: %s\n",obj,evdata);
}
+static void
+drag_start_cb(void *mydata, Evas_Object *obj, void *evdata){
+
+}
+
+static void
+drag_stop_cb(void *mydata, Evas_Object *obj, void *evdata){
+
+}
+
/* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/
#endif