Bug 130159 - Improve scrolling speed of GtkFontSelection's font/style/size lists.
Summary: Improve scrolling speed of GtkFontSelection's font/style/size lists.
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: GNOME (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Gary Ekker
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-22 16:11 UTC by Zhe Su
Modified: 2006-01-18 15:43 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch against gtk+ 2.8.6 (5.43 KB, patch)
2005-10-22 16:12 UTC, Zhe Su
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zhe Su 2005-10-22 16:11:47 UTC
When selecting a new font,style or size in GtkFontSelection, the speed of
updating preview string is very slow, because creating information of a new font
in pango/fontconfig is very slow. So it's very hard for users to scroll the
lists by cursors.

The attached patch solves this issue by moving the font update code into an
async function.

SA: http://bugzilla.gnome.org/show_bug.cgi?id=319483
Comment 1 Zhe Su 2005-10-22 16:12:31 UTC
Created attachment 55155 [details]
Patch against gtk+ 2.8.6
Comment 2 Zhe Su 2005-10-24 12:03:45 UTC
See also upstreaming bug report http://bugzilla.gnome.org/show_bug.cgi?id=319483
Comment 3 JP Rosevear 2005-12-23 12:56:13 UTC
Federico, Are you able to poke upstream on this and/or approve this patch for our gtk2?
Comment 4 Federico Mena Quintero 2005-12-29 01:57:43 UTC
Sure, let's take care of it upstream.

In the meantime, feel free to put the patch as it is in our Pango package.  I think it needs some changes before it can go into CVS.
Comment 5 Federico Mena Quintero 2006-01-10 18:32:08 UTC
Did this patch go in?  Zhe, do you need help in putting it in our Pango package?
Comment 6 Zhe Su 2006-01-11 03:09:14 UTC
I need your help on submitting it into autobuild. It's very inconvenient for me to update the package, because I can only work with build.net right now.
Comment 7 JP Rosevear 2006-01-11 14:38:29 UTC
Re-assigning to Gary for submission.
Comment 8 Gary Ekker 2006-01-18 02:34:45 UTC
Submitted for beta 2.

Federico, if you could give this a nudge upstream, it seems to have stalled there.
Comment 9 Federico Mena Quintero 2006-01-18 15:43:23 UTC
Sorry for not updating the bug.  We are discussing this in performance-list.  It turns out that people have looked into optimizing FcFontSort (the culprit), but it's not easy.