The functions ecore_x_window_prop_card32_list_get, ecore_x_window_prop_xid_get, and...
authorkwo <kwo@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Jul 2009 10:27:51 +0000 (10:27 +0000)
committerkwo <kwo@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Jul 2009 10:27:51 +0000 (10:27 +0000)
commit4c4aa6b036731cffdf4c0110990614ad8ca5f381
treef7ad19796a8e753182711fb68f90495442958c69
parenta14b192419d1f60ec9c32a467c31343c06bdee38
The functions ecore_x_window_prop_card32_list_get, ecore_x_window_prop_xid_get, and ecore_x_window_prop_xid_list_get were buggy.

The original intention was that if the property is absent or not of extected type (or invalid window) they should return -1, otherwise they should return the number of elements in the property, 0 if none.

Unfortunately they all returned 0 if the property does not exist. Also, ecore_x_window_prop_xid_list_get retuned 0 if the property exists, has no elements, but has wrong type (should be -1).

These issues should be fixed now but this may cause problems in any code that relied on the incorrect behavior.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@41418 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/ecore_x/xlib/ecore_x_window_prop.c