Fix for BGO#648059: get_application should return something w/ROLE_APPLICATION
authorMike Gorse <mgorse@novell.com>
Mon, 18 Apr 2011 10:07:14 +0000 (05:07 -0500)
committerMike Gorse <mgorse@novell.com>
Mon, 18 Apr 2011 10:07:14 +0000 (05:07 -0500)
commitf2d5fab0b2d7802723b9104f3abd57bb30dd2a66
treea93ea6c44276134ad35d102875a4f563967f2173
parent86712069170f02f4466d209dc7214f59e662b095
Fix for BGO#648059: get_application should return something w/ROLE_APPLICATION

atspi_accessible_get_application will walk up the tree until it finds a child
of the desktop, but this causes it to return the wrong accessible if an
object's parent is set to NULL for whatever reason, so check for this and
return the object's root accessible in that case.
atspi/atspi-accessible.c