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
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
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