summaryrefslogtreecommitdiff
path: root/src/bin/e_zone.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-28 10:59:19 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-28 10:59:19 +0000
commit37461278bc016651fb1680f838b8f3770756c3e4 (patch)
tree6d6d52b2d52e0df8c46b2b4ef6bb7271b8a4ab54 /src/bin/e_zone.c
parent9370e51c04fe0e3b8393505dff4aa13a3cfdc91b (diff)
downloadenlightenment-37461278bc016651fb1680f838b8f3770756c3e4.tar.gz
add e_shelf_zone_dummy_new(), e_shelf_list_all(), and e_gadcon_dummy_new() to allow for creating an object (such as a task bar) which simulates a shelf for the purpose of removing its geometry from _e_zone_useful_geometry_calc(), thus preventing windows from being placed under it
ticket #643 SVN revision: 72999
Diffstat (limited to 'src/bin/e_zone.c')
-rw-r--r--src/bin/e_zone.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c
index 291a2111e7..70165bc0ac 100644
--- a/src/bin/e_zone.c
+++ b/src/bin/e_zone.c
@@ -1224,15 +1224,16 @@ e_zone_edge_win_layer_set(E_Zone *zone,
static void
_e_zone_useful_geometry_calc(E_Zone *zone)
{
- const Eina_List *l;
const E_Shelf *shelf;
+ Eina_List *shelves;
int x0, x1, yy0, yy1;
x0 = 0;
yy0 = 0;
x1 = zone->w;
yy1 = zone->h;
- EINA_LIST_FOREACH(e_shelf_list(), l, shelf)
+ shelves = e_shelf_list_all();
+ EINA_LIST_FREE(shelves, shelf)
{
E_Config_Shelf_Desk *sd;
E_Gadcon_Orient orient;