I'm not a fan of GnomeToolKit in general, nor do I like the KDE alternative.
Somehow I like Motif because it is simpler and runs on my old TekX terminal.
Anyway, Scintilla and GTKSourceView are really powerful and do a great job
I've never seriously programmed anything with them, so I have these kind of silly doubts and made the mistake of reading the wrong manual.
Also, GTK, GTK2, GTK3 are a bit confusing about the portage, but this is the Gentoo way to handle them.
x11-libs/gtksourceview:2 ->2.10.5-r4 -> { /usr/lib/libgtk-2.so, /usr/include/gtksourceview-2.0 }
x11-libs/gtksourceview:3 ->3.24.11 -> { /usr/lib/libgtk-3.so, /usr/include/gtksourceview-3.0 }
x11-libs/gtksourceview:4 ->4.6.1-r1 -> { /usr/lib/libgtk-4.so, /usr/include/gtksourceview-4 }
If I were them, I would have supported gtk, gtk2 and gtk3 in three dedicated ebuilds, one for each
e.g.
x11-libs/gtksourceview2
x11-libs/gtksourceview3
x11-libs/gtksourceview4
instead of grouping them all in the same (x11-libs/gtksourceview) ebuild with a SLOT to select.
I spent three days on this type of problem because it was buggy and (also due to my ignorance with gtk) I didn't understand what was going on under the shell.