summaryrefslogtreecommitdiff
path: root/gtk/gtkviewport.c
diff options
context:
space:
mode:
authorTorsten Schönfeld <kaffeetisch@gmx.de>2013-02-17 14:00:10 +0100
committerCosimo Cecchi <cosimoc@gnome.org>2013-02-18 19:39:12 -0500
commitafc57cabf036fff13c9f8eeb89efde8b43b9ee9c (patch)
treeece63cc9b9665256cc943d03fb126669776b1bbd /gtk/gtkviewport.c
parente9165687813f6b5752d661347c99693b54eb434d (diff)
downloadgtk+-afc57cabf036fff13c9f8eeb89efde8b43b9ee9c.tar.gz
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
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r--gtk/gtkviewport.c7
1 files 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
*/