RE: Scrolled window (gtk+ 2.2.2)
- From: "Rastatter, Ken (OH32)" <Ken Rastatter Honeywell com>
- To: "'gtk-list gnome org'" <gtk-list gnome org>
- Subject: RE: Scrolled window (gtk+ 2.2.2)
- Date: Wed, 30 Jul 2003 10:31:13 -0700
"embyte" wrote on Wed, 30 Jul 2003 12:26:36 +0200
> I'm able to append new text to it, but when i fill the
> text area the scroll bar doesn't lower with text.
This is how I scroll to the end of a GtkTextView widget:
GtkTextBuffer *textbuffer;
GtkTextIter end_iter;
textbuffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview));
gtk_text_buffer_get_end_iter(textbuffer, &end_iter);
gtk_text_view_scroll_to_iter(GTK_TEXT_VIEW(textview),
&end_iter, 0.0, FALSE, 0.0, 0.0);
Have a good day!
--
Ken Rastatter, Senior Design Engineer
Honeywell Sensotec
2080 Arlingate Lane, Columbus, Ohio, 43228-4112 USA
Home Page: http://www.sensotec.com
"These opinions are mine and not necessarily those of Honeywell."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]