summaryrefslogtreecommitdiff
path: root/src/bin/e_utils.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/bin/e_utils.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c
index 91d3f31cd..93b7ed584 100644
--- a/src/bin/e_utils.c
+++ b/src/bin/e_utils.c
@@ -1323,6 +1323,15 @@ e_util_time_str_get(long int seconds)
1323} 1323}
1324 1324
1325static void 1325static void
1326_e_util_size_debug_del(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
1327{
1328 int x, y, w, h;
1329
1330 evas_object_geometry_get(obj, &x, &y, &w, &h);
1331 fprintf(stderr, "DEL %s OBJ[%p]: (%d,%d) - %dx%d\n", evas_object_visible_get(obj) ? "VIS" : "HID", obj, x, y, w, h);
1332}
1333
1334static void
1326_e_util_size_debug(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) 1335_e_util_size_debug(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
1327{ 1336{
1328 int x, y, w, h; 1337 int x, y, w, h;
@@ -1344,6 +1353,8 @@ e_util_size_debug_set(Evas_Object *obj, Eina_Bool enable)
1344 _e_util_size_debug, NULL); 1353 _e_util_size_debug, NULL);
1345 evas_object_event_callback_add(obj, EVAS_CALLBACK_HIDE, 1354 evas_object_event_callback_add(obj, EVAS_CALLBACK_HIDE,
1346 _e_util_size_debug, NULL); 1355 _e_util_size_debug, NULL);
1356 evas_object_event_callback_add(obj, EVAS_CALLBACK_DEL,
1357 _e_util_size_debug_del, NULL);
1347 } 1358 }
1348 else 1359 else
1349 { 1360 {
@@ -1355,6 +1366,8 @@ e_util_size_debug_set(Evas_Object *obj, Eina_Bool enable)
1355 _e_util_size_debug, NULL); 1366 _e_util_size_debug, NULL);
1356 evas_object_event_callback_del_full(obj, EVAS_CALLBACK_HIDE, 1367 evas_object_event_callback_del_full(obj, EVAS_CALLBACK_HIDE,
1357 _e_util_size_debug, NULL); 1368 _e_util_size_debug, NULL);
1369 evas_object_event_callback_del_full(obj, EVAS_CALLBACK_DEL,
1370 _e_util_size_debug_del, NULL);
1358 } 1371 }
1359} 1372}
1360 1373