diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2022-02-22 08:47:04 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2022-02-23 06:24:52 +0100 |
commit | 63bc309c7af04496c68346b0eee0c138943300ff (patch) | |
tree | 1ac67eff4f3ffdbd603d3bcb3b576a48477d8aec /vcl | |
parent | c95d2c8ef7a7d062536e225b843006bdf3d7d65b (diff) |
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.weghorn@posteo.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/a11y/atkimage.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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" ); |