From 7ec3dd0f41572325034bc461133b3c2d8797acd0 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Mon, 8 Nov 2010 14:05:29 +0000 Subject: [PATCH] Right drop target size If we are in an autoscroll container, use it's size as drop target SVN revision: 54328 --- src/modules/ibar/e_mod_main.c | 5 ++++- src/modules/ibox/e_mod_main.c | 5 ++++- src/modules/pager/e_mod_main.c | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c index 90d5334..356ef52 100644 --- a/src/modules/ibar/e_mod_main.c +++ b/src/modules/ibar/e_mod_main.c @@ -429,7 +429,10 @@ _ibar_instance_drop_zone_recalc(Instance *inst) { Evas_Coord x, y, w, h; - evas_object_geometry_get(inst->o_ibar, &x, &y, &w, &h); + if (inst->gcc->o_box) + evas_object_geometry_get(inst->gcc->o_box, &x, &y, &w, &h); + else + evas_object_geometry_get(inst->o_ibar, &x, &y, &w, &h); e_drop_handler_geometry_set(inst->drop_handler, x, y, w, h); } diff --git a/src/modules/ibox/e_mod_main.c b/src/modules/ibox/e_mod_main.c index c4e43e7..cc9f99d 100644 --- a/src/modules/ibox/e_mod_main.c +++ b/src/modules/ibox/e_mod_main.c @@ -449,7 +449,10 @@ _ibox_instance_drop_zone_recalc(Instance *inst) { Evas_Coord x, y, w, h; - evas_object_geometry_get(inst->o_ibox, &x, &y, &w, &h); + if (inst->gcc->o_box) + evas_object_geometry_get(inst->gcc->o_box, &x, &y, &w, &h); + else + evas_object_geometry_get(inst->o_ibox, &x, &y, &w, &h); e_drop_handler_geometry_set(inst->drop_handler, x, y, w, h); } diff --git a/src/modules/pager/e_mod_main.c b/src/modules/pager/e_mod_main.c index 0ea002e..de3a4e6 100644 --- a/src/modules/pager/e_mod_main.c +++ b/src/modules/pager/e_mod_main.c @@ -857,7 +857,10 @@ _pager_instance_drop_zone_recalc(Instance *inst) { Evas_Coord x, y, w, h; - evas_object_geometry_get(inst->o_pager, &x, &y, &w, &h); + if (inst->gcc->o_box) + evas_object_geometry_get(inst->gcc->o_box, &x, &y, &w, &h); + else + evas_object_geometry_get(inst->o_pager, &x, &y, &w, &h); e_drop_handler_geometry_set(inst->pager->drop_handler, x, y, w, h); } -- 2.7.4