Re: GtkText::set_line_wrap() on *Nix vs. Win32
| From: | Geoff A. Virgo | Date: | Wed, 27 Jun 2001 18:19:45 +0000 |
| Subject: | Re: GtkText::set_line_wrap() on *Nix vs. Win32 | ||
| References: | 1 2 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1984@lists.php.net to get a copy of this message | ||
At 08:20 AM -0500 Wednesday, 6/27/01, you wrote:
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.Thanks for the suggestion Andrei, a CR/LF problem was also my thought of what might be causing the problem. However, I've checked it out and my editor is set to not save PHP files with CR/LF, and I don't use \r or \r\n in my source. Just out of curiosity I tried replacing all instances of \n with \r\n and it gave me clear character boxes to represent all the \r characters I'd added in. If it'd help, I can mail you a screenshot of this happening and the string I'm filling GtkText with. Let me know if you need to see it. I'm guessing that your reply means you don't see the same little black boxes on your *Nix setup? Do you know if the same thing shows up in other the GTK language bindings like Python? The black boxes don't appear on lines which I manually wrap, so I guess I'm going to have to write some sorta work around for Win32. Cheers, Geoff A. Virgo http://www.mithril.ca/ ------------------------------------------------------------------------------------------------------------------------ Do not meddle in the affairs of programmers, for they are subtle and quick to anger.