get zone from gadcon.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Sun, 21 Jun 2009 21:18:44 +0000 (21:18 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Sun, 21 Jun 2009 21:18:44 +0000 (21:18 +0000)
commit413729a142b519c52479596b9626807ef96fda33
treeb79b66f16a3d85e56c80745133884fbcb6cdaf17
parent248ba9cebc57329e40277465c1cb4d67f329427f
get zone from gadcon.

The old code that query the zone based on x,y was causing me
segfaults. When battery module was in a hidden shelf, the position was
outside any zone and then segmentation fault.

As far as I understand, gcc->gadcon->zone should always exist and
always be correct, but I don't have xinerama setup now to confirm
that.

If you know this is wrong, let me know!

SVN revision: 41147
src/bin/e_gadcon.c
src/bin/e_gadcon.h
src/bin/e_gadcon_popup.c