[Libreoffice-bugs] [Bug 138425] New: Adding a menu bar menu given by a PopupMenuController in an extension doesn't work with GTK

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 23 08:37:56 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138425

            Bug ID: 138425
           Summary: Adding a menu bar menu given by a PopupMenuController
                    in an extension doesn't work with GTK
           Product: LibreOffice
           Version: 6.3 all versions
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: graphics stack
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: tv.bugs.freedesktop.org at beamnet.de

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 
https://github.com/lernapparat/lotranslate/
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:
https://github.com/hanya/BookmarksMenu

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201123/4c63e444/attachment.htm>


More information about the Libreoffice-bugs mailing list