diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2009-01-05 04:19:48 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2009-01-05 04:19:48 +0000 |
commit | e725c73ba0aee2040e5199394f70894ca25cd62c (patch) | |
tree | 2cdb847e9a558a86ec109e4836a8d015dc3d9d93 /docs/reference/gtk/tmpl | |
parent | f4ee825f0ec558183319a2c836bfcc26100a51c0 (diff) | |
download | gtk+-e725c73ba0aee2040e5199394f70894ca25cd62c.tar.gz |
Add long description
svn path=/trunk/; revision=22063
Diffstat (limited to 'docs/reference/gtk/tmpl')
-rw-r--r-- | docs/reference/gtk/tmpl/gtkviewport.sgml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/reference/gtk/tmpl/gtkviewport.sgml b/docs/reference/gtk/tmpl/gtkviewport.sgml index 54eefc0e60..c6343cb8e0 100644 --- a/docs/reference/gtk/tmpl/gtkviewport.sgml +++ b/docs/reference/gtk/tmpl/gtkviewport.sgml @@ -6,12 +6,24 @@ An adapter which makes widgets scrollable <!-- ##### SECTION Long_Description ##### --> <para> +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. +</para> +<para> +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. </para> <!-- ##### SECTION See_Also ##### --> <para> - +#GtkScrolledWindow, #GtkAdjustment </para> <!-- ##### SECTION Stability_Level ##### --> |