GNOME Bugzilla – Bug 172470
GtkTextView wrapping faulty in certain GtkScrolledWindow configuration
Last modified: 2018-04-15 00:35:48 UTC
Please describe the problem: If a GtkTextView is placed inside a GtkScrolledWindow and set to wrap (in any mode) and the scrolled window has its horizontal adjustment policy set to GTK_POLICY_NEVER, the text view will grow the window instead of wrap when text is typed. If the horizontal adjustment policy is GTK_POLICY_AUTOMATIC, the text view _will_ wrap, and the horizontal scrollbar never appears. Note that if the text view is packed as the single child of a toplevel GtkWindow and is set to wrap, it will wrap (and the window doesn't grow) -- therefore, the scrolled window behaviour seems to be, at best, inconsistent with other widget behaviour. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 39606 [details] testcase.c Short testcase
*** Bug 688472 has been marked as a duplicate of this bug. ***
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla. If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab: https://gitlab.gnome.org/GNOME/gtk/issues/new