<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 - Adding a menu bar menu given by a PopupMenuController in an extension doesn't work with GTK"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=138425">138425</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Adding a menu bar menu given by a PopupMenuController in an extension doesn't work with GTK
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.3 all versions
          </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>graphics stack
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>tv.bugs.freedesktop.org@beamnet.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
I have an extension and want to add a top-level menu (so it's own entry in the
menu bar itself), with the menu provided by a PopupMenuController. This works
on Windows (last I tested in late 2019) and with the gen VCL plugin on Linux.
It does not work with the gtk VCL plugin. For the latter, the menu bar has the
extra item, but the menu is unpopulated and the menu controller isn't "fired".

I'm using this in 
<a href="https://github.com/lernapparat/lotranslate/">https://github.com/lernapparat/lotranslate/</a>
but as this has C extension module dependencies, it is a bit harder to get to
run than the BookmarksMenu extension, which shows the same phenomenon:
<a href="https://github.com/hanya/BookmarksMenu">https://github.com/hanya/BookmarksMenu</a>

I have yet to make sure if it is the top-level aspect specifically or if it is
generally with popup menus (although this might not gone unnoticed, given
LibreOffice's internal use of popup menus).


Steps to Reproduce:
Install the bookmarks menu extension linked above (it has not been updated
recently, but it works on November git libreoffice) and look at the "Bookmarks"
heading. Setting with "SAL_USE_VCLPLUGIN=gtk3 ./instdir/program/soffice", the
bookmark menu only has the "<no selection possible>" placeholder, with
SAL_USE_VCLPLUGIN=gen, the menu appears.

Actual Results:
Depending on the backend, the menu is present or not.

Expected Results:
Always get the menu.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Debian seems to use the gen backend by default, which works. Windows seems to
work, too. A self-built git checkout seems to use gtk by default, which doesn't
work, but forcing gen works. I didn't check other backends.</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>