Re: GtkText::set_line_wrap() on *Nix vs. Win32
| From: | Andrei Zmievski | Date: | Thu, 28 Jun 2001 20:42:15 +0000 |
| Subject: | Re: GtkText::set_line_wrap() on *Nix vs. Win32 | ||
| References: | 1 2 3 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1992@lists.php.net to get a copy of this message | ||
Do you want to try asking about this on gtk+ mailing list? I don't think it's PHP-GTK specific.
At 10:40 AM 6/28/01 +0100, Steph wrote:
can I just add to this that any "insert_text" added just by typing it as a long string there & then, no \r no \n no \nothing, produces what appears to be hard carriage returns at the end of the linewrap when the linewrap is enabled ... again in win32 ----- Original Message ----- From: "Geoff A. Virgo" <wig@mithril.ca> To: <php-gtk@lists.php.net> Sent: Wednesday, June 27, 2001 7:19 PM Subject: Re: [PHP-GTK] GtkText::set_line_wrap() on *Nix vs. Win32 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. -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net-Andrei