<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Simplify calls to Menu::CheckItem"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=117058">117058</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Simplify calls to Menu::CheckItem
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0.0.0.alpha0+
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>muhammet.kara@pardus.org.tr
          </td>
        </tr></table>
      <p>
        <div>
        <pre>If you wanted to check a menu item by its name, you had to do it like this:

pGearMenu->CheckItem( pGearMenu->GetItemId("gear_iconOnly") );

Now we can do it just like this:

pGearMenu->CheckItem( "gear_iconOnly" );


There are still some instances of the old-style calls that needs to be changed.
You can search with "git grep CheckItem" for such instances, and change them to
the new style. Just make sure it is a call to the CheckItem method of the Menu
class (or one of its sub-classes), but not a call to CheckItem method of an
unrelated class.

Example commit:
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=66ed9797ba8f61994a187dfcc189f375dcd0cdcc">https://cgit.freedesktop.org/libreoffice/core/commit/?id=66ed9797ba8f61994a187dfcc189f375dcd0cdcc</a></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>