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

Showing a specific part of a GtkText



Myself:
> I have a GtkText with a vertical scrollbar. The GtkText contains
> a lot of text. At one point, I need to make sure that a word
> at index N in the text buffer is shown in the displayed window.

I solved my problem. I was using Gtk-- and the class Gtk_Editable
does not seem to have the equivalent to gtk_editable_set_position().
That GTK+ function does what I wanted, and very simply...

I did notice that this function brings the scrollbar to a specific
position in the text, but by moving the scrollbar one pixel at a
time. When the text is very big, scrolling that way from top to
bottom can be time consuming. Is this behavior configurable?

-- 
Pierre Sarrazin <sarrazip@sympatico.ca>



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