diff options
author | Steven Harms <sharms@ubuntu.com> | 2010-03-04 13:13:45 -0500 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-04-18 03:29:16 +0200 |
commit | 7693026e4471bfb18d3347e9e4a7fa741723e75f (patch) | |
tree | 051aa4c2eb58d644d0337c8d4b668207526c0941 /gtk/gtkviewport.c | |
parent | 75ffa7983ae05a6b9f3bdeeb80b83a587b4d310c (diff) | |
download | gtk+-7693026e4471bfb18d3347e9e4a7fa741723e75f.tar.gz |
[docs] Move documentation to inline comments: GtkViewport
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611829x
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r-- | gtk/gtkviewport.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index bfda9f28bf..7571a5dcf3 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -31,6 +31,25 @@ #include "gtkprivate.h" #include "gtkalias.h" +/** + * SECTION:gtkviewport + * @Short_description: An adapter which makes widgets scrollable + * @Title: GtkViewport + * @See_also:#GtkScrolledWindow, #GtkAdjustment + * + * The #GtkViewport widget acts as an adaptor class, implementing + * scrollability for child widgets that lack their own scrolling + * capabilities. Use #GtkViewport to scroll child widgets such as + * #GtkTable, #GtkBox, and so on. + * + * If a widget has native scrolling abilities, such as #GtkTextView, + * #GtkTreeView or #GtkIconview, it can be added to a #GtkScrolledWindow + * with gtk_container_add(). If a widget does not, you must first add the + * widget to a #GtkViewport, then add the viewport to the scrolled window. + * The convenience function gtk_scrolled_window_add_with_viewport() does + * exactly this, so you can ignore the presence of the viewport. + */ + enum { PROP_0, PROP_HADJUSTMENT, |