From afc57cabf036fff13c9f8eeb89efde8b43b9ee9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20Sch=C3=B6nfeld?= Date: Sun, 17 Feb 2013 14:00:10 +0100 Subject: [PATCH] GtkViewport: annotate the adjustment args of the constructor NULL is accepted here, so add (allow-none). https://bugzilla.gnome.org/show_bug.cgi?id=694022 --- gtk/gtkviewport.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index 935bda7b9e..0469c5bce4 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -255,10 +255,11 @@ gtk_viewport_init (GtkViewport *viewport) /** * gtk_viewport_new: - * @hadjustment: horizontal adjustment - * @vadjustment: vertical adjustment + * @hadjustment: (allow-none): horizontal adjustment + * @vadjustment: (allow-none): vertical adjustment * - * Creates a new #GtkViewport with the given adjustments. + * Creates a new #GtkViewport with the given adjustments, or with default + * adjustments if none are given. * * Returns: a new #GtkViewport */