GtkWidget *textview;
...
textview = gtk_text_view_new ();
...
buffer = gtk_text_view_get_buffer (textview);
At the last line I pasted I got this warning:
warning C4133: 'function' : incompatible types - from 'GtkWidget *' to 'GtkTextView *'
How can I fix that?