Never mind. I did some improvements to the code to use the method conditionally i.e. based on gtksourceview version. Onkar