Comment 14 for bug 1822380

Revision history for this message
In , Andreldm-2 (andreldm-2) wrote :

Thanks Thomas for the bisect, unfortunately that commit doesn't show anything that I can related to this bug.
I already spent some time investigating this, but nothing conclusive yet, just that the problem may stem from here:
https://git.xfce.org/xfce/thunar/tree/thunar/thunar-templates-action.c?id=a7a6aabb955df4c59190c012daab98424905735b#n170

And here:
https://git.xfce.org/xfce/thunar/tree/thunar/thunar-templates-action.c?id=a7a6aabb955df4c59190c012daab98424905735b#n495

Menu items are added after the show signal and only after a ThunarJob is finished. That causes the menu to have scrollbars, I just don't know why the menu items aren't shown. If they are hardcoded to be added right after the "show" signal, they will appear.

Xfdesktop is not affected because menu items for file templates are created before the menu is shown (i.e. synchronously). This seems to be a race condition we are dealing with.

I'm working on a reproducer sample so I can report this to gtk devs.