Re: Commit (HEAD): Apply font-face in font-combo using a timer.

From: Robert Staudinger <robert.staudinger_at_gmail.com>
Date: Fri May 20 2005 - 20:51:52 CEST

On 5/20/05, J.M. Maurer <j.m.maurer@student.utwente.nl> wrote:
>
> On Fri, 2005-05-20 at 16:24 +0200, Robert Staudinger wrote:
> > Latest iteration of the patch. The list is filled with names from the
> > start, the actual font-faces are loaded using a timer, one per second.
> > I've tested this using martin's font pack and it works reasonably well
> > over here. Thanks all for patiently providing feedback on this issue.
> >
>
> hmmm, now when I open the font combo box, and i move my mouse over the
> fonts, i see them changing (initially this looks like a drawing bug, but
> it is ofcourse caused by the timer). Furthermore, I can only see the
> preview of the last fonts in the list after waiting a minute....

I think that's a bug in GtkCellRendererText, seems like it only draws
when the combo is opened, not when properties are changed while the
combo is open.

> Anyone any idea's for a _proper_ solution?

Maybe we should subclass GtkCellRendererText and force a redraw when
properties are changed if the renderer is visible.

- Rob
Received on Fri May 20 20:52:04 2005

This archive was generated by hypermail 2.1.8 : Fri May 20 2005 - 20:52:06 CEST