[gtk+/gtk-2-24] Layout: Add GtkFixed to docs as a See_Also
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] Layout: Add GtkFixed to docs as a See_Also
- Date: Thu, 3 Aug 2017 12:15:40 +0000 (UTC)
commit bb3b34af306aaf2aac9968a5d9665cc9de1d0e36
Author: Daniel Boles <dboles src gnome org>
Date: Thu Aug 3 13:14:49 2017 +0100
Layout: Add GtkFixed to docs as a See_Also
docs/reference/gtk/tmpl/gtklayout.sgml | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/docs/reference/gtk/tmpl/gtklayout.sgml b/docs/reference/gtk/tmpl/gtklayout.sgml
index 0a69839..b9d1f07 100644
--- a/docs/reference/gtk/tmpl/gtklayout.sgml
+++ b/docs/reference/gtk/tmpl/gtklayout.sgml
@@ -7,24 +7,27 @@ Infinite scrollable area containing child widgets and/or custom drawing
<!-- ##### SECTION Long_Description ##### -->
<para>
-#GtkLayout is similar to #GtkDrawingArea in that it's a "blank slate"
-and doesn't 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 it's a
-#GtkContainer. However if you're just going to draw, a #GtkDrawingArea
-is a better choice since it has lower overhead.
+#GtkLayout is similar to #GtkDrawingArea in that it’s a “blank slate” and
+doesn’t do anything except paint a blank background by default. It’s different
+in that it supports scrolling natively (you can add it to a #GtkScrolledWindow)
+and can contain child widgets since it’s a #GtkContainer.
+</para>
+
+<para>
+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.
</para>
<para>
When handling expose events on a #GtkLayout, you must draw to
GTK_LAYOUT (layout)->bin_window, rather than to
-GTK_WIDGET (layout)->window, as you would for a drawing
-area.
+GTK_WIDGET (layout)->window, as you would for a #GtkDrawingArea.
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
-#GtkDrawingArea, #GtkScrolledWindow
+#GtkDrawingArea, #GtkFixed, #GtkScrolledWindow
</para>
<!-- ##### SECTION Stability_Level ##### -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]