GNOME Bugzilla – Bug 684156
fontchooserwidget: scroll to the currently selected row
Last modified: 2012-09-16 23:20:22 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.