[gtksourceview/wip/chergert/gsv-gtk4: 83/84] buffer: port to GtkTextBufferClass.insert_texture



commit 33e5e88129d53c817ee4c9f1b10be8cf6f3eb6b0
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 15 15:43:45 2020 -0800

    buffer: port to GtkTextBufferClass.insert_texture

 gtksourceview/gtksourcebuffer.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index dee5172b..d98d34fe 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -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,


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