diff options
author | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2016-05-27 11:14:01 +0300 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-05-30 21:41:38 +0000 |
commit | d7834317c7c925e9096b464c5f5f3e7f76e3fda3 (patch) | |
tree | 70f4e81546c35f14de049c97e021280e281de464 /cui | |
parent | 7b042d2865c5bb2c2dde1dd47de124bc0df61ae8 (diff) |
Move accessibility relations to .ui files tdf#87026
Change-Id: I2ce2c236d124d31aaacacb0c24ba52b3a70b489c
Reviewed-on: https://gerrit.libreoffice.org/25555
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/zoom.cxx | 5 | ||||
-rw-r--r-- | cui/uiconfig/ui/zoomdialog.ui | 14 |
2 files changed, 13 insertions, 6 deletions
diff --git a/cui/source/dialogs/zoom.cxx b/cui/source/dialogs/zoom.cxx index 66b3e11b9411..d79ed31a73b0 100644 --- a/cui/source/dialogs/zoom.cxx +++ b/cui/source/dialogs/zoom.cxx @@ -196,11 +196,6 @@ SvxZoomDialog::SvxZoomDialog( vcl::Window* pParent, const SfxItemSet& rCoreSet ) SetLimits(nMin, nMax); m_pUserEdit->SetValue(nValue); - m_pUserEdit->SetAccessibleName(m_pUserBtn->GetText()); - m_pColumnsEdit->SetAccessibleName(m_pColumnsBtn->GetText()); - m_pColumnsEdit->SetAccessibleRelationMemberOf(m_pColumnsBtn); - m_pBookModeChk->SetAccessibleRelationMemberOf(m_pColumnsBtn); - const SfxPoolItem& rItem = mrSet.Get(mrSet.GetPool()->GetWhich(SID_ATTR_ZOOM)); if (nullptr != dynamic_cast<const SvxZoomItem*>( &rItem)) diff --git a/cui/uiconfig/ui/zoomdialog.ui b/cui/uiconfig/ui/zoomdialog.ui index d8223522ae52..5d5df219b7f5 100644 --- a/cui/uiconfig/ui/zoomdialog.ui +++ b/cui/uiconfig/ui/zoomdialog.ui @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.18.3 --> +<!-- Generated with glade 3.20.0 --> <interface> <requires lib="gtk+" version="3.0"/> <object class="GtkAdjustment" id="adjustment1"> @@ -199,6 +199,11 @@ <accessibility> <relation type="labelled-by" target="variable"/> </accessibility> + <child internal-child="accessible"> + <object class="AtkObject" id="zoomsb:0%-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes">Variable</property> + </object> + </child> </object> <packing> <property name="expand">False</property> @@ -320,7 +325,13 @@ <property name="adjustment">adjustment1</property> <accessibility> <relation type="labelled-by" target="columns"/> + <relation type="member-of" target="columns"/> </accessibility> + <child internal-child="accessible"> + <object class="AtkObject" id="columnssb-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes">Columns</property> + </object> + </child> </object> <packing> <property name="expand">False</property> @@ -350,6 +361,7 @@ <property name="draw_indicator">True</property> <accessibility> <relation type="labelled-by" target="columns"/> + <relation type="member-of" target="columns"/> </accessibility> </object> </child> |