X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkviewport.c;h=248e17fa2ee4ec4c2f38f29e5994270f43ad0472;hb=db76c77b819b1b31e19609bb1b30c85f22b5b482;hp=e57f75699f2c7ef92d8ff1e90486b98d7e39c485;hpb=3833ef5c35b9dd9ca13bb9a61e6e322cc62fe369;p=~andy%2Fgtk diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index e57f75699..248e17fa2 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -32,6 +32,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,