vcl/unx/gtk3/a11y/atkimage.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 63bc309c7af04496c68346b0eee0c138943300ff Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Tue Feb 22 08:47:04 2022 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Wed Feb 23 06:24:52 2022 +0100 gtk3 a11y: Replace deprecated atk_component_get_position in atkimage 'atk_component_get_position' is deprecated since ATK 2.12 and 'atk_component_get_extents' should be used instead, which also returns the width and the height (that we don't need here). [1] https://docs.gtk.org/atk/method.Component.get_position.html Change-Id: I8c49cc6942406051bca1fcdfa4ca0bfc8d326911 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130333 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/vcl/unx/gtk3/a11y/atkimage.cxx b/vcl/unx/gtk3/a11y/atkimage.cxx index 477c71cc99ba..da4965b86828 100644 --- a/vcl/unx/gtk3/a11y/atkimage.cxx +++ b/vcl/unx/gtk3/a11y/atkimage.cxx @@ -84,9 +84,9 @@ image_get_image_position( AtkImage *image, *x = *y = -1; if( ATK_IS_COMPONENT( image ) ) { - SAL_WNODEPRECATED_DECLARATIONS_PUSH - atk_component_get_position( ATK_COMPONENT( image ), x, y, coord_type ); - SAL_WNODEPRECATED_DECLARATIONS_POP + gint nWidth = -1; + gint nHeight = -1; + atk_component_get_extents(ATK_COMPONENT(image), x, y, &nWidth, &nHeight, coord_type); } else g_warning( "FIXME: no image position information" );