[gtk+] GtkViewport: annotate the adjustment args of the constructor



commit afc57cabf036fff13c9f8eeb89efde8b43b9ee9c
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date:   Sun Feb 17 14:00:10 2013 +0100

    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 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 935bda7..0469c5b 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
  */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]