Re: How to create a scrolled text window with GTK 2.x?



Untested, but an other idea:

// Maybe not needed
gtk_text_buffer_get_end_iter( buffer, &iter );
gtk_text_buffer_place_cursor( buffer, &iter );
// Ok - get insert mark
mark = gtk_text_buffer_get_insert( buffer );
// Move insert into the bottom right
gtk_text_view_scroll_to_mark( view, mark, 0.0, TRUE, 1.0, 1.0 );
// gtk_text_buffer_delete_mark( mark ); // Not sure if needed

Jan-Marek



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