[gtk/doc-fixes: 4/4] Fix annotation for GtkDropTarget.get_gtypes()



commit a3b9dba13c2684453a0ea2e45054d9e0157d043a
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Mar 3 13:17:31 2020 +0000

    Fix annotation for GtkDropTarget.get_gtypes()
    
    The argument name must match in the documentation, and the `allow-none`
    annotation is deprecated, and should be replaced by `optional` in this
    case.

 gtk/gtkdroptarget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkdroptarget.c b/gtk/gtkdroptarget.c
index 89e91a9a9a..b93e43c462 100644
--- a/gtk/gtkdroptarget.c
+++ b/gtk/gtkdroptarget.c
@@ -864,7 +864,7 @@ gtk_drop_target_set_gtypes (GtkDropTarget *self,
 /**
  * gtk_drop_target_get_gtypes:
  * @self: a #GtkDropTarget
- * @n_gtypes: (out) (allow-none): optional pointer to take the
+ * @n_types: (out) (optional): optional pointer to take the
  *     number of #GTypes contained in the return value
  *
  * Gets the list of supported #GTypes for @self. If no type have been set,


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