[gtk/bilelmoussaoui/g-i: 2/5] g-i: mark EventController::name as nullable




commit cb710f1999a616676f6a5360b0d051236bf82d95
Author: Bilal Elmoussaoui <belmouss redhat com>
Date:   Fri Feb 11 12:02:07 2022 +0100

    g-i: mark EventController::name as nullable
    
    Fixes https://github.com/gtk-rs/gtk4-rs/issues/893

 gtk/gtkeventcontroller.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkeventcontroller.c b/gtk/gtkeventcontroller.c
index 2d0de55383..8666de4a87 100644
--- a/gtk/gtkeventcontroller.c
+++ b/gtk/gtkeventcontroller.c
@@ -551,6 +551,8 @@ gtk_event_controller_set_propagation_limit (GtkEventController  *controller,
  * @controller: a `GtkEventController`
  *
  * Gets the name of @controller.
+ * 
+ * Returns: (nullable): The controller name
  */
 const char *
 gtk_event_controller_get_name (GtkEventController *controller)
@@ -565,7 +567,7 @@ gtk_event_controller_get_name (GtkEventController *controller)
 /**
  * gtk_event_controller_set_name: (attributes org.gtk.Method.set_property=name)
  * @controller: a `GtkEventController`
- * @name: a name for @controller
+ * @name: (nullable): a name for @controller
  *
  * Sets a name on the controller that can be used for debugging.
  */


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