gtk3 a11y: Simplify gtk3/gtk4 version check

One gtk3-specific section is sufficient.

Change-Id: I42a5cd1b94df7874665743a386af8e2e19590b0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176786
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn 2024-11-19 17:20:11 +01:00
parent c5834bcfac
commit 657873772c

View file

@ -18839,11 +18839,9 @@ public:
virtual AbsoluteScreenPixelPoint get_accessible_location_on_screen() override
{
#if !GTK_CHECK_VERSION(4, 0, 0)
AtkObject* pAtkObject = default_drawing_area_get_accessible(m_pWidget);
#endif
gint x(0), y(0);
#if !GTK_CHECK_VERSION(4, 0, 0)
AtkObject* pAtkObject = default_drawing_area_get_accessible(m_pWidget);
if (pAtkObject && ATK_IS_COMPONENT(pAtkObject))
atk_component_get_extents(ATK_COMPONENT(pAtkObject), &x, &y, nullptr, nullptr, ATK_XY_SCREEN);
#endif