Description: Could you add a CSS class or an id to the main window of LibreOffice? For example id=LibreOfficeMainWindow like Geany do. This is to update a GTK theme to add some CSS styles, but only for LibreOffice (extra: another id/class to the grid element that contains the menubar). Steps to Reproduce: 1. Install lib gtk 3 dev 2. Run LibreOffice with the following command line: `GTK_DEBUG=interactive libreoffice` 3. With the inspector, go to the main window Actual Results: There is no way to identify the libreoffice window. Expected Results: A way to identify the libreoffice window. For example: id=LibreOfficeMainWindow Reproducible: Always User Profile Reset: Yes Additional Info: Version: 7.5.6.2 (X86_64) / LibreOffice Community Build ID: 50(Build:2) CPU threads: 32; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR Debian package version: 4:7.5.6-1 Calc: threaded
Created attachment 190151 [details] gtk inspector with libreoffice
Thanks for the suggestion. I expanded the summary, does that describe your use case correctly? Michael, Caolán and Heiko, I feel like you all could have an opinion on this? If not, please feel free to un-CC :) Admittedly, not a high priority enhancement, but I guess it can't hurt and could be quite easy to fix?
(In reply to Stéphane Guillou (stragu) from comment #2) > Michael, Caolán and Heiko, I feel like you all could have an opinion on this? > If not, please feel free to un-CC :) > Admittedly, not a high priority enhancement, but I guess it can't hurt and > could be quite easy to fix? No objections from my side. Sounds reasonable to me and from a quick glance at the geany source code, that seems to be just a matter of calling 'gtk_widget_set_name' for the corresponding widget: https://github.com/geany/geany/blob/ba6fc4a4fa48239daca7350ec05d25e44cc89169/src/libmain.c#L294
No harm, and apparently not much effort: +1 (ultimately a topic for Caolan)
I don't have an objection, presumably safe to do like the others do
OK, thank you throth for the fast replies, let's set to "new" for anyone who wants to pick it up. Hossein, an easyHack?