Ethereal-dev: Re: [Ethereal-dev] Preferences bug: font reset if editing preferences

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Olivier Abad <oabad@xxxxxxx>
Date: Wed, 21 Jan 2004 13:23:34 +0100
On dim, jan 18, 2004 at 11:28:30 +0100, Ulf Lamping wrote:
> You have written, that you're using GTK 2.x, so this bug should have 
> been fixed for quite a while now...
> 
> Hmmm, that sounds to me, that we cannot do anything against it, or do 
> you have any good idea?

I noticed, using gdb, that gtk_font_selection_set_font_name returns
false (it doesn't work). However, if I wait until the preference dialog
is displayed before calling gtk_font_selection_set_font_name, it works !

After a few tests, I found that it must be executed at least after the
font selection widget has been appended to the notebook.

Olivier
-- 
Best of all is never to have been born.  Second best is to die soon.