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 Biot" <ethereal@xxxxxxxxxx>
Date: Sun, 18 Jan 2004 20:32:51 +0100
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?