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: Sun, 18 Jan 2004 23:28:30 +0100
Olivier Biot wrote:

At lines 323 and 324 I get prefs.gui_font_name = "monospace 12" as I
previously set it.

Then I select the Font preference, and I see "sans" "Normal" 12pt
highlighted.

The code in gtk/gui_prefs.c says:

   /* Set the font to the current font.
   XXX - GTK+ 1.2.8, and probably earlier versions, have a bug
   wherein that doesn't necessarily cause that font to be
   selected in the dialog box.  I've sent to the GTK+ folk
   a fix; hopefully, it'll show up in 1.2.9 if, as, and when
   they put out a 1.2.9 release. */
gtk_font_selection_set_font_name(
    GTK_FONT_SELECTION(font_browse_w), prefs.gui_font_name);

So it seems that the problem is known to some extent.

Regards,

Olivier


----- Original Message ----- From: "Ulf Lamping"

| Olivier Biot wrote:
|
| >| >Might this be an issue only visible when compiling with "-O3" as
| >| >optimization?
| >| >
| >| Could you try to use a different optimization level?
| >
| >Compiling everything in gtk/ and ethereal.exe with -O2 instead
of -O3
| >yields the same problem...
| >
| >
| That's beginning to get strange...
|
| Could you debug into gui_prefs.c, line 323/324, and have a look at
the
| "prefs.gui_font_name" var there?
|
| This should reflect your saved font (e.g. "courier new 9" on my
| machine). This is the default font shown by the "Font" page.
|
| Could you also have a look, if the "prefs.gui_font_name" is really
in
| the list of the fonts in the dialog?




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?

Regards, ULFL