aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-18 13:43:34 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-18 13:43:34 +0000
commit41058ea8e2bcf5c838572f6e35afee5b33681bdc (patch)
tree33d8e597874e807c68191d2fb2f1554305c6ba3b
parent257a7d58c9d763cbfa8de908def0aee2edb1ae1c (diff)
downloadenlightenment-41058ea8e2bcf5c838572f6e35afee5b33681bdc.tar.gz
enlightenment-41058ea8e2bcf5c838572f6e35afee5b33681bdc.tar.xz
enlightenment-41058ea8e2bcf5c838572f6e35afee5b33681bdc.zip
e_util_size_debug_set now prints on show/hide events
SVN revision: 84057
-rw-r--r--ChangeLog2
-rw-r--r--NEWS2
-rw-r--r--src/bin/e_utils.c10
3 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d29d9423f..0ed19238a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
* fixed disable of input methods in input method config dialog
* fixed pointer warp when pointer was inside warp window but not directly over it
* desklock now uses compositor canvas
+ * e_shelf_desk_visible_get now takes const params
+ * e_util_size_debug_set now also prints for object show/hide events
2013-02-13 Deon Thomas
diff --git a/NEWS b/NEWS
index 49011db78..665778e84 100644
--- a/NEWS
+++ b/NEWS
@@ -49,6 +49,8 @@ Changes:
* e_menu_category_callback create callback parameter order has been changed
* e_manager_comp_set() is no longer accessible by modules
* e_xkb_layout API now deals directly with E_Config_XKB_Layout structs
+ * e_shelf_desk_visible_get now takes const params
+ * e_util_size_debug_set now also prints for object show/hide events
Config:
* move winlist_warp_speed option to pointer_warp_speed
* bindings now use new E_Binding_Event structs for mouse events
diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c
index f57bd2d5c..91d3f31cd 100644
--- a/src/bin/e_utils.c
+++ b/src/bin/e_utils.c
@@ -1328,7 +1328,7 @@ _e_util_size_debug(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj,
int x, y, w, h;
evas_object_geometry_get(obj, &x, &y, &w, &h);
- fprintf(stderr, "OBJ[%p]: (%d,%d) - %dx%d\n", obj, x, y, w, h);
+ fprintf(stderr, "%s OBJ[%p]: (%d,%d) - %dx%d\n", evas_object_visible_get(obj) ? "VIS" : "HID", obj, x, y, w, h);
}
EAPI void
@@ -1340,6 +1340,10 @@ e_util_size_debug_set(Evas_Object *obj, Eina_Bool enable)
_e_util_size_debug, NULL);
evas_object_event_callback_add(obj, EVAS_CALLBACK_RESIZE,
_e_util_size_debug, NULL);
+ evas_object_event_callback_add(obj, EVAS_CALLBACK_SHOW,
+ _e_util_size_debug, NULL);
+ evas_object_event_callback_add(obj, EVAS_CALLBACK_HIDE,
+ _e_util_size_debug, NULL);
}
else
{
@@ -1347,6 +1351,10 @@ e_util_size_debug_set(Evas_Object *obj, Eina_Bool enable)
_e_util_size_debug, NULL);
evas_object_event_callback_del_full(obj, EVAS_CALLBACK_RESIZE,
_e_util_size_debug, NULL);
+ evas_object_event_callback_del_full(obj, EVAS_CALLBACK_SHOW,
+ _e_util_size_debug, NULL);
+ evas_object_event_callback_del_full(obj, EVAS_CALLBACK_HIDE,
+ _e_util_size_debug, NULL);
}
}