diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-07-21 11:28:57 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-07-22 15:00:14 +0200 |
commit | 16bf1b6da85a59383a7d88fc062cac1d93f6f06e (patch) | |
tree | 336b01a8cc7be195ab75753c546ef6d31eda6b44 | |
parent | 55d0469c8d1a576e9149ad7ddffda5a023b171c3 (diff) |
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@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@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
(cherry picked from commit a768e5b7ff3a4788bbe6d23e427e34e9e81442c1)
-rw-r--r-- | vcl/unx/gtk/a11y/atklistener.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx index f9c25fdd6fae..b18f927cc3dc 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"); |