gtksourceview gtk_source_view_get_type return 0

bill lam <[email protected]>
Newsgroups gmane.comp.gnome.devtools
Message-ID <[email protected]>
I'm not sure if this the correct forum to post, so sorry if it isn't.

I want to use glib api 'g_type_check_instance_is_a window' to test if a widget 
is a gtksourceview like this
   g_type_check_instance_is_a (window , gtk_source_view_get_type())

but the function 'gtk_source_view_get_type' returns 0. Other gtk widgets (eg. 
menu_bar_get_type) work properly

Does anyone know how to make 'gtk_source_view_get_type' work?


thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.