Re: GtkTextView and scrolled window
- From: Paolo Costabel <paolo zebradevelopment com>
- To: Mishael A Sibiryakov <death junki org>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkTextView and scrolled window
- Date: Tue, 12 Apr 2005 10:15:30 -0700
Mishael A Sibiryakov wrote:
Hello.
I have a two small question about GtkTextView and about how it works
with scrolled window widget.
1. I have a TextView witch is placed to scrolled window (this is simple
chat window), and i want to do automatic scroll is new message inserted
to TextBuffer. How can i do that ? I try to read about GtkAdjustment but
i have not absolutely understood how i can do that.
When you enter text in a TextView, it will automatically scroll. Look at
the gtk-demo for an example.
2. How i can do "messages limit" ? Now i can count lines in TextBuffer
and remove line on first TextIter if count is more than limit. Is this
correct, or anybody know most beautiful solution ?
Yes, this will work.
Sorry for my poor english.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]