Re: GtkTextView : how many lines currently visible?
- From: Eduardo M KALINOWSKI <ekalin bol com br>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkTextView : how many lines currently visible?
- Date: Thu, 06 Apr 2006 10:47:13 -0300
Erik de Castro Lopo wrote:
Hi all,
I'm using a GtkTextView widget and I'd like to know things like:
- How many lines are currently visible
- What line in the GtkTextBuffer is the top visible line in
the window.
gtk_text_view_get_line_at_y(), gtk_text_view_get_iter_at_location() or
gtk_text_view_get_iter_at_position(), with appropriate coordinates
(HINT: gtk_text_view_window_to_buffer_coordinates()) followed by
gtk_text_iter_get_line() might do the trick.
--
I'm not going to say, "I told you so."
Eduardo M KALINOWSKI
ekalin bol com br
http://move.to/hpkb
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]