GNOME Bugzilla – Bug 431636
GtkTextView display problem with long lines
Last modified: 2007-04-25 13:36:19 UTC
Please describe the problem: The script-fu console interface suffers multiple wrap problems. Tested on Solaris and Linux but both with GTK 2.10.6. Steps to reproduce: 1. Open Script-fu console 2. Type in following commands - (make-string 2 #\g) -> OK "gg" is correctly display - (make-string 8190 #\g) -> NOK if scrolled horizontally until the end, the closing " cannot be found - (make-string 8191 #\g) -> NOK the line disappear - (make-string 8192 #\g) -> NOK trash output - (make-string 8200 #\g) -> NOK trash output, second line writen on first one. Actual results: Trashed output in console. Expected results: Clean output in console. Does this happen every time? Yes Other information: This could be a gtk issue or a line wrap handling issue. Moreover, the horizontal scroll is very disturbing for the console.
I don't think that's a real-life problem but nevertheless it looks like a GTK+ problem. You should make a small test program and file a bug-report against GTK+.
I have added word-wrapping in the console. This avoids the horizontal scrolling for output that doesn't fit on one line. It doesn't deal with very long words as in your examples but that's not relevant for real-world use cases. Closing as FIXED. Please open a bug report for the GtkTextView problem. 2007-04-20 Sven Neumann <sven@gimp.org> * plug-ins/script-fu/script-fu-console.c: enable word-wrapping in the Script-Fu console.
I suggest to remove the gtk_text_view_set_wrap_mode(). The behavior changes from trashed console output to console freeze (or maybe five minutes waiting is too short for a result...) The (make-string) test case is not really real world; it just shows the limit. Using (gimp-procedure-db-query *) is a rare case that triggers the problem. As no better solution exists (except the fix in gtk), I suggest closing this as WONTFIX. My 2.2 PDB is twice the size of the 2.3 and is correctly displayed in GTK 2.6.2 TextView on one single line.
Why should the call be removed? The output of (gimp-procedure-db-query *) looks much better with word-wrapping enabled.
We can't close this as WONTFIX as it's a problem in GTK+ and needs to be reported there. Eric, did you take care of that in the meantime?
Created attachment 86908 [details] Test case for GTK+ 2.6.10 scrolled text view This little program reproduces the problem using only GTK+2.6.10 (Solaris and Linux). The TextView must be enclosed in ScrolledWindow widget.
Created attachment 86909 [details] Output obtains at the Left of the TextView
Created attachment 86910 [details] Output obtained at the Right of the TextView This one could be correct as there is no way to display infinite character, so after a certain limit, output could be discard.
Same output with gtk+ 2.6.11 using scrolled TextView test case.
I can compile the test case and reproduce the problem at the right corner of the text view using gtk+ 2.10.11. Reassigning to GTK+.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 127731 ***