aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_photo.c
diff options
context:
space:
mode:
authorBrett Nash <nash@nash.id.au>2010-09-08 06:20:05 +0000
committerBrett Nash <nash@nash.id.au>2010-09-08 06:20:05 +0000
commit96404438244c1900a696cf73aa9b7945716559bb (patch)
treeefacf6d9c43e0e0eaab824435dceca53cceed58b /legacy/elementary/src/bin/test_photo.c
parentElm: photo doco ++ (diff)
downloadefl-96404438244c1900a696cf73aa9b7945716559bb.tar.gz
Add 'drop' callback when objects are dropped.
SVN revision: 51977
Diffstat (limited to 'legacy/elementary/src/bin/test_photo.c')
-rw-r--r--legacy/elementary/src/bin/test_photo.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/legacy/elementary/src/bin/test_photo.c b/legacy/elementary/src/bin/test_photo.c
index 36bb0f838c..98b6d12295 100644
--- a/legacy/elementary/src/bin/test_photo.c
+++ b/legacy/elementary/src/bin/test_photo.c
@@ -43,10 +43,13 @@ test_photo(void *data, Evas_Object *obj, void *event_info)
if (n >= 9) n = 0;
elm_photo_file_set(ph, buf);
elm_photo_editable_set(ph, 1);
- evas_object_size_hint_weight_set(ph, EVAS_HINT_EXPAND,
+ evas_object_size_hint_weight_set(ph, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(ph, EVAS_HINT_FILL,
+ evas_object_size_hint_align_set(ph, EVAS_HINT_FILL,
EVAS_HINT_FILL);
+ evas_object_smart_callback_add(ph, "drop",
+ (void*)printf,
+ "Drop on object %p: %s\n");
elm_photo_size_set(ph, 80);
if(n == 2 || n == 3) {
elm_photo_fill_inside_set(ph, EINA_TRUE);
@@ -64,8 +67,10 @@ test_photo(void *data, Evas_Object *obj, void *event_info)
elm_scroller_content_set(sc, tb);
evas_object_show(tb);
evas_object_show(sc);
-
+
evas_object_resize(win, 300, 300);
evas_object_show(win);
}
+
+/* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/
#endif