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 684156 - fontchooserwidget: scroll to the currently selected row
fontchooserwidget: scroll to the currently selected row
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-09-16 17:37 UTC by Colomban Wendling
Modified: 2012-09-16 23:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fontchooserwidget: scroll to the currently selected row (1.29 KB, patch)
2012-09-16 17:37 UTC, Colomban Wendling
none Details | Review

Description Colomban Wendling 2012-09-16 17:37:32 UTC
Created attachment 224450 [details] [review]
fontchooserwidget: scroll to the currently selected row

Currently the FontChooser widget always initially displays the top of the font list, regardless of whether a font was set with set_font(), although the item is properly selected.

This is problematic because the user can't really see the initially set fond, and e.g. if she simply wants to switch from bold to normal or alike, it requires her to find the font in the list.  Moreover this seems inconsistent because the initial font *is* properly selected (so if the user focuses the font list with the keyboard and uses the arrow keys to select the prev/next font, the list will scroll to that point), but that selection isn't necessarily visible because not scrolled to.

Attached is a simple patch that scrolls to the selection when setting it so that selection is always initially visible.