Re: Request for documentation explanation

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

 



Hi, Hrvoje,

On Mon, Jul 14, 2014 at 5:49 AM, Hrvoje Niksic <hrvoje.niksic@xxxxxxx> wrote:
> On 07/12/2014 10:52 AM, Igor Korot wrote:
>>
>> Hi, ALL,
>> On the link
>> https://developer.gnome.org/gtk2/stable/GtkTextIter.html#gtk-text-iter-get-line
>> it does not say whether it will return the number of physical lines or
>> number of logical lines.
>>
>> Could someone please sched some light on this?
>
>
> A GtkTextBuffer must return the physical line number (number of newlines
> between the beginning of buffer and the iterator's position) because a text
> buffer doesn't have the information about fonts in use and the width of the
> text view.

So, how do I get number of logical lines?
>From GtkTextView? How?

Thank you.

>
> Note that showing a line number of a display line isn't very useful to the
> end user. Physical line numbers help navigation based on diagnostics from
> external tools (compilers, syntax checkers, etc.), while display lines
> provide no such benefits.
>
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> https://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list




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

  Powered by Linux