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 737929 - Long tooltips extend too far horizontally without wrapping
Long tooltips extend too far horizontally without wrapping
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
3.14.x
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-10-05 14:11 UTC by Michael Catanzaro
Modified: 2014-10-07 02:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tooltip: fix line wrapping (868 bytes, patch)
2014-10-05 14:11 UTC, Michael Catanzaro
committed Details | Review
before (screenshot) (1.24 MB, image/png)
2014-10-05 14:14 UTC, Michael Catanzaro
  Details
after (screenshot) (1.31 MB, image/png)
2014-10-05 14:15 UTC, Michael Catanzaro
  Details

Description Michael Catanzaro 2014-10-05 14:11:38 UTC
Line wrapping in tooltips broke a year or so ago, maybe with GTK+ 3.10?  Previously tooltips would wrap automatically if they were long, but nowadays this does not happen.
Comment 1 Michael Catanzaro 2014-10-05 14:11:56 UTC
Created attachment 287761 [details] [review]
tooltip: fix line wrapping

We enable line wrap on the internal GtkLabel, but nowadays this does
nothing unless we also set a max number of characters.
Comment 2 Michael Catanzaro 2014-10-05 14:14:41 UTC
Created attachment 287762 [details]
before (screenshot)
Comment 3 Michael Catanzaro 2014-10-05 14:15:52 UTC
Created attachment 287763 [details]
after (screenshot)

I picked 70 characters arbitrarily-ish, because it looks decent.
Comment 4 Matthias Clasen 2014-10-07 01:31:13 UTC
Review of attachment 287761 [details] [review]:

sure, makes sense.

Please put this on the 3.14 branch as well
Comment 5 Matthias Clasen 2014-10-07 02:34:50 UTC
Attachment 287761 [details] pushed as 62da080 - tooltip: fix line wrapping