Layout: Tweak documentation blurb

Being addable to a ScrolledWindow is not interesting; now that SW
auto-adds a Viewport if needed, so can DrawingArea and any other widget.

Mention GtkFixed in case the reader just wants that bit of functionality
This commit is contained in:
Daniel Boles 2017-08-03 10:13:52 +01:00
parent 5cafa2b1ce
commit 06da814863

View File

@ -44,14 +44,16 @@
* @Short_description: Infinite scrollable area containing child widgets
* and/or custom drawing
* @Title: GtkLayout
* @See_also: #GtkDrawingArea, #GtkScrolledWindow
* @See_also: #GtkDrawingArea, #GtkFixed
*
* #GtkLayout is similar to #GtkDrawingArea in that its a blank slate
* and doesnt do anything but paint a blank background by default. It's
* different in that it supports scrolling natively (you can add it to a
* #GtkScrolledWindow), and it can contain child widgets, since its a
* #GtkContainer. However if youre just going to draw, a #GtkDrawingArea
* is a better choice since it has lower overhead.
* #GtkLayout is similar to #GtkDrawingArea in that its a blank slate and
* doesnt do anything except paint a blank background by default. Its
* different in that it supports scrolling natively due to implementing
* #GtkScrollable, and can contain child widgets since its a #GtkContainer.
*
* If you just want to draw, a #GtkDrawingArea is a better choice since it has
* lower overhead. If you just need to position child widgets at specific
* points, then #GtkFixed provides that functionality on its own.
*/