On Thu, 9 Dec 2004 01:23:15 +0100 Christian Biere <[EMAIL PROTECTED]> wrote:
> I've tried to enforce linebreaks after a maximum amount of characters for > tooltips. This works for GTK+ 2.x but GTK+ 2.x doesn't have a problem with > this anyway. When using GTK+ 1.2, this causes empty lines after each > line break because GTK+ 1.2 seems to add an additional line break. It also > actually uses strlen() to determine the line length. So it's no wonder > that the tooltips have irregular line breaks. Again, line breaks will only > be inserted at ASCII spaces. If the tooltip text doesn't contain any, you > will simply get a very wide tooltip. > Therefore, I think it's best if the text that causes ugly (large) tooltips > is modified, so that at least line breaks can be inserted. The irregular > line breaks cannot really be prevented. OK, I accepted it. Personally, I don't know it's better idea insert the new line sequence, also don't care seriously since I have a GTK2 version, however it might be a little terrible for those who, * Linux/Unix newbie * There is no choice other than GTK1 * (Not only Japanese) having own encoding to display character eg. euc-*, gb, viscii, tis620, etc. ...although I think it's seldom, rare case. > Try the attached patch to see how it looks if line breaks are automagically > added. I thank you for your additional coding, however it dosen't work :-( Yes, it would have been difficult to detect each character's boundary unless all of us multibyte user have decided to use Unicode... PS. If you want, I'll send screenshot of current viewing after applying patch. -- Daichi ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Gtk-gnutella-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel
