summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/a11y
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-13 13:27:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-13 13:48:23 +0100
commit6e4d3bad807a32371fe49f0a4a28ca0e5b0f6e70 (patch)
tree9e0f0f964884306b9675ce87e0c129cbcee5b963 /vcl/unx/gtk/a11y
parent4ea76db5e53235971b597a2810a6d12618d6aaea (diff)
Clean up integer types representing positions in ToolBox's item vector
(vs. uses of sal_uInt16 representing such items' IDs). APPEND and ITEM_NOTFOUND are members of ToolBox now (and have been bumped to the corresponding type's max). The payload of VclEventIds ToolboxButtonStateChanged ToolboxClick ToolboxHighlightOff ToolboxItemAdded ToolboxItemDisabled ToolboxItemEnabled ToolboxItemRemoved ToolboxItemTextChanged ToolboxItemUpdated ToolboxItemWindowChanged ToolboxSelect has been changed too (note that reading/writing of those payloads isn't very consistent, though: for some of these, values are written that are never read, while for some others no values are ever written but the reading code would like to receive some value if the payload wasn't a nullptr). Change-Id: I4856ffb3637404b8d866621a3503d7922b1b8141
Diffstat (limited to 'vcl/unx/gtk/a11y')
-rw-r--r--vcl/unx/gtk/a11y/atkutil.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx
index ad2e79bdb242..0523311d4228 100644
--- a/vcl/unx/gtk/a11y/atkutil.cxx
+++ b/vcl/unx/gtk/a11y/atkutil.cxx
@@ -430,9 +430,10 @@ static void notify_toolbox_item_focus(ToolBox *pToolBox)
if( ! xContext.is() )
return;
- sal_Int32 nPos = pToolBox->GetItemPos( pToolBox->GetHighlightItemId() );
- if( nPos != TOOLBOX_ITEM_NOTFOUND )
+ ToolBox::ImplToolItems::size_type nPos = pToolBox->GetItemPos( pToolBox->GetHighlightItemId() );
+ if( nPos != ToolBox::ITEM_NOTFOUND )
atk_wrapper_focus_tracker_notify_when_idle( xContext->getAccessibleChild( nPos ) );
+ //TODO: ToolBox::ImplToolItems::size_type -> sal_Int32
}
static void handle_toolbox_highlight(vcl::Window *pWindow)