how to make underline word by gtk1.2



dear sir/madam:
while I use GtkText in my application I use
*******************************************
void
setFontX ( GtkWidget * widget, gint fontNumber )
{
   GtkStyle *thisStyle;

   thisStyle = gtk_style_copy( gtk_widget_get_style( widget));

   if ( fontNumber == 14 ) {
         thisStyle->font =gdk_fontset_load( medium_font[3] );
   }else{
thisStyle->font =gdk_fontset_load("-adobe-helvetica-medium-r-normal--16-*-*-*-*-*-iso8859-1,\ -*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0"); } gtk_widget_set_style( widget, thisStyle); }
****************************************
to set the font by bold, medium.

how to make underline word?
**********************************
I know in the gtk2.x
pango could solve this problem, very easy. and beg you pardon, how about gtk1.2

thank you.

xn





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]