This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GTK+-2.0 porting bug in font selection widget?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]