Scroll to the end of a TextView

2004-03-04 Thread Felipe Weckx
Hi everyone, Here's the deal: the program receives a string and show it on a TextView , that's OK, but I have to scroll the view to end of the text, I tried using gtk_text_buffer_get_end_iter and gtk_text_view_scroll_to_iter, but it only scrolls to beginning of the text I've just inserted, so

Re: Scroll to the end of a TextView

2004-03-04 Thread Terje Eggestad
It wasn't intuitive, but scroll to mark doe the trick, the following func append to a textview (a log actually) and scrolls: void scacpg_append_runlog(char * msg, ...) { GtkTextView * eview; GtkTextBuffer * ebuf; GtkTextIter start, end; va_list ap; char * buffer = NULL; int l, L

Re: Scroll to the end of a TextView

2004-03-04 Thread Matthias Clasen
This is covered in the GTK+ documentation: http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html#id2517993 -- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz