Re: Find out whether a GtkTextMark is in the visible area



Hi Chris,

On 12.08.2011 11:14, Chris Vine wrote:

> (gtk_adjustment_get_value(adjustment) >=
>    gtk_adjustment_get_upper(adjustment) -
>    gtk_adjustment_get_page_size(adjustment) - 1e-12)


Thanks. Turns out that's almost how I did it after some further
searching, except for the tolerance for floating point calculation
errors, which is a good idea so I will include that.


Thanks again,
Michael

Attachment: signature.asc
Description: OpenPGP digital signature



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