diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2022-02-22 09:18:56 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2022-02-23 06:25:23 +0100 |
commit | e70b054d4945dd9bda0e869e5bc0aa19432a9802 (patch) | |
tree | 6da9e99c435c9944c7d5cfe40f7d4bdd7b6247c2 /vcl/unx | |
parent | 63bc309c7af04496c68346b0eee0c138943300ff (diff) |
gtk3 a11y: Replace deprecated atk_component_get_position in atktext
Change-Id: I06689dd0ff2f47c06879bdc3c61ce5b5db90a120
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130334
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/a11y/atktext.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/unx/gtk3/a11y/atktext.cxx b/vcl/unx/gtk3/a11y/atktext.cxx index 713b03325518..8fc773224768 100644 --- a/vcl/unx/gtk3/a11y/atktext.cxx +++ b/vcl/unx/gtk3/a11y/atktext.cxx @@ -669,9 +669,9 @@ text_wrapper_get_character_extents( AtkText *text, if( coords == ATK_XY_SCREEN ) { g_return_if_fail( ATK_IS_COMPONENT( text ) ); - SAL_WNODEPRECATED_DECLARATIONS_PUSH - atk_component_get_position( ATK_COMPONENT( text ), &origin_x, &origin_y, coords); - SAL_WNODEPRECATED_DECLARATIONS_POP + gint nWidth = -1; + gint nHeight = -1; + atk_component_get_extents(ATK_COMPONENT(text), &origin_x, &origin_y, &nWidth, &nHeight, coords); } *x = aRect.X + origin_x; @@ -720,9 +720,9 @@ text_wrapper_get_offset_at_point (AtkText *text, if( coords == ATK_XY_SCREEN ) { g_return_val_if_fail( ATK_IS_COMPONENT( text ), -1 ); - SAL_WNODEPRECATED_DECLARATIONS_PUSH - atk_component_get_position( ATK_COMPONENT( text ), &origin_x, &origin_y, coords); - SAL_WNODEPRECATED_DECLARATIONS_POP + gint nWidth = -1; + gint nHeight = -1; + atk_component_get_extents(ATK_COMPONENT(text), &origin_x, &origin_y, &nWidth, &nHeight, coords); } return pText->getIndexAtPoint( awt::Point(x - origin_x, y - origin_y) ); |