vcl/unx/gtk3/a11y/atktext.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit e70b054d4945dd9bda0e869e5bc0aa19432a9802
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Tue Feb 22 09:18:56 2022 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Wed Feb 23 06:25:23 2022 +0100

    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.wegh...@posteo.de>

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) );

Reply via email to