I would like to know if there is a way to know if the user scrolled GtkScrolledWindow (containing a GtkTextView) to the bottom or not.
Indeed, I automatically scrolled to the end with:
gtk_text_buffer_get_end_iter(tbuf, &iter);
GtkTextMark *insert_mark = gtk_text_buffer_get_insert(tbuf);
gtk_text_buffer_place_cursor(tbuf, &iter);
gtk_text_view_scroll_to_mark(text, insert_mark, 0.0, TRUE, 0.0, 1.0);
But I don't want to run this code if user has scrolled by himself.
I think I have the answer to my own question:
This code should detects if the edge is reached.