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)
commit2f546cadb0fb94913502dcc299a96d7e216e95e5
treef7ad19796a8e753182711fb68f90495442958c69
parent45ec91a036a9c8805d0e7d353304861c7047e785
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: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@41418 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/ecore_x/xlib/ecore_x_window_prop.c