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: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Fri, 23 Jan 2004 02:14:13 +0100
Olivier Abad wrote:

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
... and that fixes also the bug I described a lot earlier, as gtk_font_selection_set_filter() has the same problem.

Checked in a fix for this...

Regards, ULFL