summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-07-19 16:13:56 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-07-19 16:13:56 +0200
commit49fab9d1df66a7968e989742976d8c1601384682 (patch)
tree34c47f4e3f04c610ff7dcfe5c08176bfc43c9577
parent53707933992eee68e17a6101739aff2249390fd8 (diff)
awesome debug code! Here fresh and clean!devs/bu5hm4n/debug_code
-rw-r--r--src/bin/e_zone.c30
1 files changed, 29 insertions, 1 deletions
diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c
index b75bdc823..ad3732951 100644
--- a/src/bin/e_zone.c
+++ b/src/bin/e_zone.c
@@ -1303,7 +1303,7 @@ e_zone_useful_geometry_get(E_Zone *zone,
1303 zone->useful_geometry[1].h = zh; 1303 zone->useful_geometry[1].h = zh;
1304 zone->useful_geometry_changed = 1304 zone->useful_geometry_changed =
1305 !!memcmp(&zone->useful_geometry[0], &zone->useful_geometry[1], sizeof(Eina_Rectangle)); 1305 !!memcmp(&zone->useful_geometry[0], &zone->useful_geometry[1], sizeof(Eina_Rectangle));
1306 1306
1307 } 1307 }
1308 zone->useful_geometry_dirty = 0; 1308 zone->useful_geometry_dirty = 0;
1309 1309
@@ -1730,3 +1730,31 @@ e_zone_for_id_get(const char *id)
1730 1730
1731 return NULL; 1731 return NULL;
1732} 1732}
1733
1734EAPI void
1735_debug_code(void)
1736{
1737 E_Zone *zone;
1738 Eina_List *n;
1739
1740 EINA_LIST_FOREACH(e_comp->zones, n, zone)
1741 {
1742 printf("%p: %d %d\n", zone,
1743 evas_object_layer_get(zone->bg_event_object),
1744 evas_object_layer_get(zone->bg_clip_object));
1745 }
1746}
1747
1748EAPI void
1749_repair_code(void)
1750{
1751 E_Zone *zone;
1752 Eina_List *n;
1753
1754 EINA_LIST_FOREACH(e_comp->zones, n, zone)
1755 {
1756 evas_object_layer_set(zone->bg_event_object, E_LAYER_BG);
1757 evas_object_layer_set(zone->bg_clip_object, E_LAYER_BG);
1758 }
1759
1760}