[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - vcl/unx

Caolán McNamara caolanm at redhat.com
Fri Jul 22 12:14:00 UTC 2016


 vcl/unx/gtk/a11y/atklistener.cxx |   16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

New commits:
commit a768e5b7ff3a4788bbe6d23e427e34e9e81442c1
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jul 21 11:28:57 2016 +0100

    Resolves: tdf#101011 atk needs a value for accessible-table-column-header
    
    This presumably became a problem after...
    
    commit 76c549eb01dcb7b5bf28a271ce00e386f3d388ba
    Author: Steve Yin <steve_y at apache.org>
    Date:   Fri Nov 29 13:03:27 2013 +0000
    
        Integrate branch of IAccessible2
    
    added a TABLE_COLUMN_HEADER_CHANGED usage which triggered it.
    
    Change-Id: If54b7a39a170566cf7def3548ba385fa5d99bb1c
    (cherry picked from commit 9b47a8b21f87fa77d2d61ac4a2c2bbc7c0d67a19)
    Reviewed-on: https://gerrit.libreoffice.org/27369
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Eike Rathke <erack at redhat.com>

diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx
index f9c25fd..b18f927 100644
--- a/vcl/unx/gtk/a11y/atklistener.cxx
+++ b/vcl/unx/gtk/a11y/atklistener.cxx
@@ -520,8 +520,22 @@ void AtkListener::notifyEvent( const accessibility::AccessibleEventObject& aEven
         }
 
         case accessibility::AccessibleEventId::TABLE_COLUMN_HEADER_CHANGED:
-            g_signal_emit_by_name( G_OBJECT( atk_obj ), "property_change::accessible-table-column-header");
+        {
+            accessibility::AccessibleTableModelChange aChange;
+            aEvent.NewValue >>= aChange;
+
+            AtkPropertyValues values;
+            memset(&values,  0, sizeof(AtkPropertyValues));
+            g_value_init (&values.new_value, G_TYPE_INT);
+            values.property_name = "accessible-table-column-header";
+
+            for (sal_Int32 nChangedColumn = aChange.FirstColumn; nChangedColumn <= aChange.LastColumn; ++nChangedColumn)
+            {
+                g_value_set_int (&values.new_value, nChangedColumn);
+                g_signal_emit_by_name(G_OBJECT(atk_obj), "property_change::accessible-table-column-header", &values, nullptr);
+            }
             break;
+        }
 
         case accessibility::AccessibleEventId::TABLE_CAPTION_CHANGED:
             g_signal_emit_by_name( G_OBJECT( atk_obj ), "property_change::accessible-table-caption");


More information about the Libreoffice-commits mailing list