RE: GtkTextView and GtkScrolledWindow, scroll to bottom?
- From: <martyn 2 russell bt com>
- To: <jacob omnia dk>, <gtk-app-devel-list gnome org>
- Subject: RE: GtkTextView and GtkScrolledWindow, scroll to bottom?
- Date: Mon, 6 Oct 2003 09:51:19 +0100
Can some one direct me to some example code
that scrolls a GtkTextView contained in a GtkScrolledWindow
to the bottom whenever text i inserted.
GtkTextView *textview = NULL;
GtkTextBuffer *buffer = NULL;
GtkTextMark *mark = NULL;
GtkTextIter iter_start;
GtkTextIter iter_end;
buffer = gtk_text_view_get_buffer(textview);
gtk_text_buffer_get_bounds(buffer, &iter_start, &iter_end);
mark = gtk_text_buffer_create_mark(buffer, NULL, &iter_end, FALSE);
gtk_text_view_scroll_mark_onscreen(textview, mark);
gtk_text_buffer_delete_mark(buffer, mark);
Regards,
MArtyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]