Commit 33e5e881 authored by Christian Hergert's avatar Christian Hergert

buffer: port to GtkTextBufferClass.insert_texture

parent 97a81484
......@@ -297,7 +297,7 @@ gtk_source_buffer_class_init (GtkSourceBufferClass *klass)
text_buffer_class->delete_range = gtk_source_buffer_real_delete_range;
text_buffer_class->insert_text = gtk_source_buffer_real_insert_text;
text_buffer_class->insert_pixbuf = gtk_source_buffer_real_insert_pixbuf;
text_buffer_class->insert_texture = gtk_source_buffer_real_insert_texture;
text_buffer_class->insert_child_anchor = gtk_source_buffer_real_insert_child_anchor;
text_buffer_class->mark_set = gtk_source_buffer_real_mark_set;
text_buffer_class->mark_deleted = gtk_source_buffer_real_mark_deleted;
......@@ -1026,14 +1026,14 @@ gtk_source_buffer_real_insert_text (GtkTextBuffer *buffer,
gtk_text_iter_get_offset (iter));
}
/* insert_pixbuf and insert_child_anchor do nothing except notifying
/* insert_texture and insert_child_anchor do nothing except notifying
* the highlighting engine about the change, because engine's idea
* of buffer char count must be correct at all times.
*/
static void
gtk_source_buffer_real_insert_pixbuf (GtkTextBuffer *buffer,
GtkTextIter *iter,
GdkPixbuf *pixbuf)
gtk_source_buffer_real_insert_texture (GtkTextBuffer *buffer,
GtkTextIter *iter,
GdkTexture *texture)
{
gint start_offset;
......@@ -1048,7 +1048,7 @@ gtk_source_buffer_real_insert_pixbuf (GtkTextBuffer *buffer,
* default signal handler revalidates it to point to the end of the
* inserted text.
*/
GTK_TEXT_BUFFER_CLASS (gtk_source_buffer_parent_class)->insert_pixbuf (buffer, iter, pixbuf);
GTK_TEXT_BUFFER_CLASS (gtk_source_buffer_parent_class)->insert_texture (buffer, iter, texture);
gtk_source_buffer_content_inserted (buffer,
start_offset,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment