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 761128 - Selected text in password entry not drawn correctly
Selected text in password entry not drawn correctly
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.19.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-01-26 10:59 UTC by Christoph Reiter (lazka)
Modified: 2016-01-27 01:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christoph Reiter (lazka) 2016-01-26 10:59:57 UTC
1) master form yesterday
2) gtk3-demo
3) Entry -> Entry Buffer
4) Type something in the upper entry
5) Try to select the hidden password text in the entry below
6) Only parts of the selection background is shown
Comment 1 Benjamin Otte (Company) 2016-01-27 01:13:16 UTC
commit a222aa66d5b7811798c3a98b0b0694de6fe4ec49
Author: Benjamin Otte <otte@redhat.com>
Date:   Wed Jan 27 02:07:35 2016 +0100

  entry: Compute selection range correctly
           
  gtk_editable_get_selection_bounds() returns UTF-8 character offsets,
  but gdk_pango_layout_get_clip_region() wants byte ranges, so convert
  from one to the other.
  With English, this is especially visible for passwords, which use ●
  as the invisible character.