Bug 160287 - In Tabbed NotebookBar toolbar, "Print directly (%s)" button label contains the printer name, which is too long (uses 25-30% of available screen width space)
Summary: In Tabbed NotebookBar toolbar, "Print directly (%s)" button label contains th...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Notebookbar-Tabbed
  Show dependency treegraph
 
Reported: 2024-03-20 16:55 UTC by Jeff Fortin Tam
Modified: 2024-09-24 06:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (42.05 KB, image/png)
2024-03-20 16:55 UTC, Jeff Fortin Tam
Details
Screenshot on Ubuntu 22.04 + GNOME 42.9, gtk3 VCL plugin (42.82 KB, image/png)
2024-03-21 04:46 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Fortin Tam 2024-03-20 16:55:09 UTC
Created attachment 193213 [details]
Screenshot

See attached screenshot. In the tabbed toolbar UI mode, that button's label alone eats over a quarter of of my screen's width, preventing other toolbar sections/groups from showing.

As the tooltip already shows the full printer name, I would recommend that the button's label be constrained to only showing "Print Directly", leaving the " (%s)" part to the tooltip.

This is particularly problematic on Linux where CUPS constantly auto-renames printers to super long names like this; it is not even possible for the user to shorten the printer name.

---

Tested on:

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Linux 6.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2024-03-21 04:46:42 UTC
Created attachment 193220 [details]
Screenshot on Ubuntu 22.04 + GNOME 42.9, gtk3 VCL plugin

Reproduced in:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 53c5d570cab036b23f4969b858a648c8f0c24f93
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

In my case (Ubuntu 22.04 + GNOME 42.9 + gtk3 VCL plugin), the button is cut off and looks bad.

Label on button should not show the printer name at all (or at least be ellipsis'ed).
Comment 2 Stéphane Guillou (stragu) 2024-03-21 04:48:00 UTC
Heiko, could this be an easyHack?
Comment 3 Heiko Tietze 2024-03-21 08:42:18 UTC
The Notebookbar UI variants take the label from the command string, and .uno:PrintDefault is amended at sfx2/source/view/viewsh.cxx SID_PRINTER_NAME.

The command itself is placed on many if not all toolbars but made not visible by default. I think adding the printer name makes a lot of sense. But perhaps only for the contextual label and the tooltip. It might be easyhackable but is beyond my skills.


Since we have a lot issues with labels on the Notebookbar, I suggested to introduce another label on commands for this UI variant. Wouldn't solve the trouble with Print Directly though.