If we replace GtkTextView with GtkSourceView, GtkTextBuffer needs to be replaced with GtkSourceBuffer.
Source: https://developer.gnome.org/gtksourceview/stable/GtkSourceView.html
If we replace GtkTextView with GtkSourceView, GtkTextBuffer needs to be replaced with GtkSourceBuffer.
Source: https:/ /developer. gnome.org/ gtksourceview/ stable/ GtkSourceView. html