Right drop target size
authorSebastian Dransfeld <sd@tango.flipp.net>
Mon, 8 Nov 2010 14:05:29 +0000 (14:05 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Mon, 8 Nov 2010 14:05:29 +0000 (14:05 +0000)
If we are in an autoscroll container, use it's size as drop target

SVN revision: 54328

src/modules/ibar/e_mod_main.c
src/modules/ibox/e_mod_main.c
src/modules/pager/e_mod_main.c

index 90d5334..356ef52 100644 (file)
@@ -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);
 }  
 
index c4e43e7..cc9f99d 100644 (file)
@@ -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);
 }
 
index 0ea002e..de3a4e6 100644 (file)
@@ -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);
 }