Re: GtkText::set_line_wrap() on *Nix vs. Win32
| From: | Andrei Zmievski | Date: | Wed, 27 Jun 2001 13:20:16 +0000 |
| Subject: | Re: GtkText::set_line_wrap() on *Nix vs. Win32 | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1982@lists.php.net to get a copy of this message | ||
On Tue, 26 Jun 2001, Geoff A. Virgo wrote:
> Hello all,
>
> I was running if someone running php-gtk on *Nix could answer a quick
> question for me. Setting set_line_wrap equal to true in GtkText() on Win32
> produces little black boxes about the same height as the cursor and 5 times
> the width to appear at the end of any line which is wrapped. Does this
> also occur on *Nix installations or is it a purely Win32 phenomenon? If it
> is a Win32 thing, where is the place I'd need to look at fixing it in the
> source? Andrei?
I bet those are your carriage returns (\r). Unix doesn't have them, it
only uses newlines (\n). Try replacing all \r\n combinations with \n
before inserting into GtkText.
-Andrei
Hacker: Any person who derives joy from
discovering ways to circumvent limitations.