Resolves tdf#153499 - Hide newly introduced frame label

Frame content is not shown for existing entries
Follow-up to 4ec75d22eb

Change-Id: Ic2b40b19424245ede326a5ef5b53f684ca8a3f94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151166
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
This commit is contained in:
Heiko Tietze
2023-04-28 15:13:12 +02:00
committed by Heiko Tietze
parent 6fab79859e
commit a2756bf71a
3 changed files with 4 additions and 1 deletions
+2
View File
@@ -168,6 +168,7 @@ SwIndexMarkPane::SwIndexMarkPane(std::shared_ptr<weld::Dialog> xDialog, weld::Bu
, m_xNextSameBT(rBuilder.weld_button("last"))
, m_xPrevBT(rBuilder.weld_button("previous"))
, m_xNextBT(rBuilder.weld_button("next"))
, m_xForSelectedEntry(rBuilder.weld_label("selectedentrytitle"))
{
m_xSyncED->show();
@@ -345,6 +346,7 @@ void SwIndexMarkPane::InitControls()
//to include all equal entries may only be allowed in the body and even there
//only when a simple selection exists
const FrameTypeFlags nFrameType = m_pSh->GetFrameType(nullptr,true);
m_xForSelectedEntry->show();
m_xApplyToAllCB->show();
m_xSearchCaseSensitiveCB->show();
m_xSearchCaseWordOnlyCB->show();
+1
View File
@@ -87,6 +87,7 @@ class SwIndexMarkPane
std::unique_ptr<weld::Button> m_xNextSameBT;
std::unique_ptr<weld::Button> m_xPrevBT;
std::unique_ptr<weld::Button> m_xNextBT;
std::unique_ptr<weld::Label> m_xForSelectedEntry;
void Apply();
void InitControls();
+1 -1
View File
@@ -582,8 +582,8 @@
</child>
<child type="label">
<object class="GtkLabel" id="selectedentrytitle">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="no-show-all">True</property>
<property name="label" translatable="yes" context="indexentry|selectedentrytitle">For Selected Entry</property>
<attributes>
<attribute name="weight" value="bold"/>