diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-11-13 09:24:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-11-13 22:08:04 +0100 |
commit | 64c93c950e191d8c6ee7cf138ff60d085c9486de (patch) | |
tree | 1c2c63866d94e484ed7206cf652660f6ed49b234 /vcl/unx | |
parent | 471f2bf1ee9256f5b8196b6cc713666729654e59 (diff) |
add set_accessible_description
Change-Id: I18aebc4a127ff92f5d2606490e4f120d4b98b4ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105796
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 3105a4e3056b..a74533faa787 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -2731,6 +2731,14 @@ public: atk_object_set_name(pAtkObject, OUStringToOString(rName, RTL_TEXTENCODING_UTF8).getStr()); } + virtual void set_accessible_description(const OUString& rDescription) override + { + AtkObject* pAtkObject = gtk_widget_get_accessible(m_pWidget); + if (!pAtkObject) + return; + atk_object_set_description(pAtkObject, OUStringToOString(rDescription, RTL_TEXTENCODING_UTF8).getStr()); + } + virtual OUString get_accessible_name() const override { AtkObject* pAtkObject = gtk_widget_get_accessible(m_pWidget); |