This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
GTK+-2.0 porting bug in font selection widget?
- From: Olivier Biot <ouverture1812 at yahoo dot com>
- To: cygwin-xfree at cygwin dot com
- Date: Mon, 19 Jan 2004 07:12:41 -0800 (PST)
- Subject: GTK+-2.0 porting bug in font selection widget?
- Reply-to: cygwin-xfree at cygwin dot com
Hi list,
It looks like a GTK+-1.x bug which was fixed in
mainstream GTK+-2.0 appeared again in GTK+-2.2.1. The
following code snippet is from Ethereal, which I
compile with cygwin (and its GTK-x11 2.2.1-3 and Glib
2.2.1-2), and should set the highlighted font in the
font selection widget. However it invariably
highlights "sans" normal, 12pt, resulting in it also
being selected as opposed to the font "courier" which
should be specified (that's the value of
prefs.gui_font_name).
/* 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);
The code snippet works correctly on Linux so it looks
it has to do with code porting.
Anyone an idea?
Regards,
Olivier
=====
Olivier Biot (Belgium, Europe) | Astronomy, LaTeX, C, Mineralogy,
Email: Ouverture1812 (@) yahoo.com | ATMing, Music, Computers, Guitar
ICQ # 8807511 (nickname Bibi) | AND MANY MORE ...
WWW: http://www.biot.yucom.be/
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus