-}
-
-static void wxGtkTextInsert(GtkWidget *text,
- GtkTextBuffer *text_buffer,
- const wxTextAttr& attr,
- wxCharBuffer buffer)
-
-{
- gint start_offset;
- GtkTextIter iter, start;
-
- gtk_text_buffer_get_iter_at_mark( text_buffer, &iter,
- gtk_text_buffer_get_insert (text_buffer) );
- start_offset = gtk_text_iter_get_offset (&iter);
- gtk_text_buffer_insert( text_buffer, &iter, buffer, strlen(buffer) );
-
- gtk_text_buffer_get_iter_at_offset (text_buffer, &start, start_offset);
-
- wxGtkTextApplyTagsFromAttr(text_buffer, attr, &start, &iter);
-}
-#else
-static void wxGtkTextInsert(GtkWidget *text,
- const wxTextAttr& attr,
- const char *txt,
- size_t len)
-{
- GdkFont *font = attr.HasFont() ? attr.GetFont().GetInternalFont()
- : NULL;