<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Change label "Recent" to "No recent character" or "No recent color" when no recent character or color selected"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=137547#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Change label "Recent" to "No recent character" or "No recent color" when no recent character or color selected"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=137547">bug 137547</a>
              from <span class="vcard"><a class="email" href="mailto:heiko.tietze@documentfoundation.org" title="Heiko Tietze <heiko.tietze@documentfoundation.org>"> <span class="fn">Heiko Tietze</span></a>
</span></b>
        <pre>First, you have to make the label available at code. Add
std::unique_ptr<weld::Label> m_xRecentLabel; to the header file
charmapcontrol.hxx. Load the control per  ",
m_xRecentLabel(m_xBuilder->weld_label("label2"))" in
SfxCharmapCtrl::SfxCharmapCtrl() (sequence matters, so place the command where
you added the label in the header file). Now you may set the label to either
"Recent" or "No Recent Characters" depending on "m_aRecentCharList.size()>0".
Add <sfx2/strings.hrc> to the includes, define the two string variables there,
and use m_xRecentLabel->set_label(SfxResId(STR_RECENT)); (or STR_NORECENT
respectively). Find a good place for this so the label is set initially and
responds when recent items are deleted.

If you want to continue, please use "take" at the field assignee and set status
to assigned.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>