g-i: Add nullable annotations to EventControllerKey::im-context
authorBilal Elmoussaoui <belmouss@redhat.com>
Fri, 11 Feb 2022 11:59:55 +0000 (12:59 +0100)
committerBilal Elmoussaoui <belmouss@redhat.com>
Fri, 11 Feb 2022 11:59:55 +0000 (12:59 +0100)
Fixes https://github.com/gtk-rs/gtk4-rs/issues/874

gtk/gtkeventcontrollerkey.c

index bf5f8f5dcbd5c2b5b2e3aba13e1ab9e2bbffcf8d..49a149668b3c648fc793228c710319ef135efb99 100644 (file)
@@ -293,7 +293,7 @@ gtk_event_controller_key_new (void)
 /**
  * gtk_event_controller_key_set_im_context:
  * @controller: a `GtkEventControllerKey`
- * @im_context: a `GtkIMContext`
+ * @im_context: (nullable): a `GtkIMContext`
  *
  * Sets the input method context of the key @controller.
  */
@@ -316,7 +316,7 @@ gtk_event_controller_key_set_im_context (GtkEventControllerKey *controller,
  *
  * Gets the input method context of the key @controller.
  *
- * Returns: (transfer none): the `GtkIMContext`
+ * Returns: (transfer none) (nullable): the `GtkIMContext`
  **/
 GtkIMContext *
 gtk_event_controller_key_get_im_context (GtkEventControllerKey *controller)