After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 661667 - Location field causes panel resizing
Location field causes panel resizing
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Printers
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Marek Kašík
Control-Center Maintainers
3.10
Depends on:
Blocks:
 
 
Reported: 2011-10-13 13:32 UTC by Matthias Clasen
Modified: 2014-04-30 09:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Ellipsize long names and locations (1.44 KB, patch)
2013-10-16 13:47 UTC, Marek Kašík
needs-work Details | Review
Ellipsize long names and locations (2.31 KB, patch)
2014-02-12 16:11 UTC, Marek Kašík
committed Details | Review
a screenshot comparing different styles of ellipsizing (81.81 KB, image/png)
2014-02-12 16:11 UTC, Marek Kašík
  Details

Description Matthias Clasen 2011-10-13 13:32:56 UTC
I have a few printers with longer text in the location field which cause the control-center page to grow - We should either make the text wrap, or ellipsize it.
Comment 1 Marek Kašík 2013-10-16 13:47:55 UTC
Created attachment 257421 [details] [review]
Ellipsize long names and locations

Attached patch makes entries holding location and printer name to ellipsize if needed.
Comment 2 Bastien Nocera 2014-02-12 14:23:52 UTC
Review of attachment 257421 [details] [review]:

Screenshot? Wouldn't that potentially lose details that might be added at the end of the string?

Say I have 2 printers of the same type, with long descriptions, wouldn't that cut off the end where the differentiation is?

I'd ellipsise in the middle instead.
Comment 3 Marek Kašík 2014-02-12 16:11:02 UTC
Created attachment 268924 [details] [review]
Ellipsize long names and locations

(In reply to comment #2)
> Review of attachment 257421 [details] [review]:
> 
> Screenshot? Wouldn't that potentially lose details that might be added at the
> end of the string?
> 
> Say I have 2 printers of the same type, with long descriptions, wouldn't that
> cut off the end where the differentiation is?
> 
> I'd ellipsise in the middle instead.

I'll attach a screenshot in a minute.

You are right, it is better to ellipsize in the middle for printers.

I've modified also the original code for ellipsizing of printer names in the treeview on the left because it didn't work (it works now, but even if it is set to ellipsize in the middle, it ellipsizes at the end... - probably a bug in gtk+ itself).
Comment 4 Marek Kašík 2014-02-12 16:11:35 UTC
Created attachment 268925 [details]
a screenshot comparing different styles of ellipsizing
Comment 5 Bastien Nocera 2014-04-29 12:44:14 UTC
Review of attachment 268924 [details] [review]:

Looks good.
Comment 6 Marek Kašík 2014-04-30 09:33:30 UTC
Comment on attachment 268924 [details] [review]
Ellipsize long names and locations

Thank you for the review. I've pushed the patch to master.