+ bool hasSpecialAttributes = m_font.Ok() ||
+ m_foregroundColour.Ok() ||
+ m_backgroundColour.Ok();
+ if ( hasSpecialAttributes )
+ {
+ gtk_text_insert( GTK_TEXT(m_text),
+ m_font.GetInternalFont(),
+ m_foregroundColour.GetColor(),
+ m_backgroundColour.GetColor(),
+ text, text.length());
+
+ }
+ else
+ {
+ /* we'll insert at the last position */
+ gint len = gtk_text_get_length( GTK_TEXT(m_text) );