-#else // GTK+ 1.x
- wxCoord width = gdk_string_width( font, text.mbc_str() );
- wxCoord height = font->ascent + font->descent;
-
- if ( m_backgroundMode == wxSOLID )
- {
- gdk_gc_set_foreground( m_textGC, m_textBackgroundColour.GetColor() );
- gdk_draw_rectangle( m_window, m_textGC, TRUE, x, y, width, height );
- gdk_gc_set_foreground( m_textGC, m_textForegroundColour.GetColor() );
- }
- gdk_draw_string( m_window, font, m_textGC, x, y + font->ascent, text.mbc_str() );
-
- /* CMB 17/7/98: simple underline: ignores scaling and underlying
- X font's XA_UNDERLINE_POSITION and XA_UNDERLINE_THICKNESS
- properties (see wxXt implementation) */
- if (m_font.GetUnderlined())
- {
- wxCoord ul_y = y + font->ascent;
- if (font->descent > 0) ul_y++;
- gdk_draw_line( m_window, m_textGC, x, ul_y, x + width, ul_y);
- }
-#endif // GTK+ 2.0/1.x
-