After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 624034 - TextView freezes when packed in a hbox within a Viewport (if wrap_mode = WRAP_WORD_CHAR)
TextView freezes when packed in a hbox within a Viewport (if wrap_mode = WRAP...
Status: RESOLVED INVALID
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.21.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-07-10 11:50 UTC by Ricardo Cruz
Modified: 2014-08-19 10:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case v3 (1.04 KB, text/plain)
2010-07-10 11:50 UTC, Ricardo Cruz
Details

Description Ricardo Cruz 2010-07-10 11:50:45 UTC
Created attachment 165620 [details]
Test case v3

In a program where I packed a bunch of GtkTextView in a horizontal box, and placed them in a GtkViewport, gtk freezes if the GtkTextView wrap_mode is set to GTK_WRAP_WORD_CHAR.

See the accompanying test case to see what I mean.

The bug report for the program that triggered this program:
https://bugzilla.novell.com/show_bug.cgi?id=620513
Comment 1 Ricardo Cruz 2010-07-10 11:54:13 UTC
Probably Pango would have been the better "Product" to assign this bug to.
Comment 2 Ricardo Cruz 2010-07-12 14:42:43 UTC
I should point out that the wrap_mode seems to make more likely the misbehavior in the test case. But, in our real case, it was enough to fix the problem. 

Setting the hbox homogeneous property as FALSE did the trick -- and we then emulated that property by simply specifying an equal fixed width to its children. This fixed width can be 1, since what we are aiming for is to get hbox to distribute the extra space among the children, which it does in equal doses.
Comment 3 Ricardo Cruz 2010-07-12 14:43:26 UTC
typo:

- But, in our real case, it was enough to fix the problem. 
+ But, in our real case, it was NOT enough to fix the problem.
Comment 4 Sébastien Wilmet 2014-07-20 14:06:53 UTC
GtkTextView already implements the GtkScrollable interface, so you can directly add it to a GtkScrolledWindow, no need to add it to a GtkViewport.
Comment 5 Ricardo Cruz 2014-08-19 10:34:45 UTC
No. In our product, we wanted to have several widgets -- one of them being GtkTextView -- and we wanted them all to be within a scrollable area. (it was a panel similar to a webpage)

This was a several years ago, so I do not recall the details. Anyhow it triggered a crash somewhere within the GTK stack. Might be fixed in GTK3 dunno.