diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-04-19 22:50:35 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-04-20 00:38:58 -0400 |
commit | b4c79bad34fa414273dcb5d3bcdf9913c80f57c5 (patch) | |
tree | babb6659edf17a6f30b3b09c1e73f540c1e15dd6 /gtk/gtkviewport.c | |
parent | 013cc096513bcafdb28f687722cf54e38766ee69 (diff) | |
download | gtk+-b4c79bad34fa414273dcb5d3bcdf9913c80f57c5.tar.gz |
Assorted documentation fixes
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r-- | gtk/gtkviewport.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index 64011d1f3f..d03a7f1fda 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -523,6 +523,15 @@ gtk_viewport_adjustment_value_changed (GtkAdjustment *adjustment, gtk_widget_queue_allocate (GTK_WIDGET (data)); } +/** + * gtk_viewport_get_scroll_to_focus: + * @viewport: a #GtkViewport + * + * Gets whether the viewport is scrolling to keep the focused + * child in view. See gtk_viewport_set_scroll_to_focus(). + * + * Returns: %TRUE if the viewport keeps the focus child scrolled to view + */ gboolean gtk_viewport_get_scroll_to_focus (GtkViewport *viewport) { @@ -533,6 +542,14 @@ gtk_viewport_get_scroll_to_focus (GtkViewport *viewport) return priv->scroll_to_focus; } +/** + * gtk_viewport_set_scroll_to_focus: + * @viewport: a #GtkViewport + * @scroll_to_focus: whether to keep the focus widget scrolled to view + * + * Sets whether the viewport should automatically scroll + * to keep the focused child in view. + */ void gtk_viewport_set_scroll_to_focus (GtkViewport *viewport, gboolean scroll_to_focus) |