RE: Scrolled window (gtk+ 2.2.2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux