GtkSearchBar - Mark get_key_capture_widget() return value as nullable
authorSebastian Dröge <sebastian@centricular.com>
Sun, 26 Dec 2021 09:03:25 +0000 (11:03 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 26 Dec 2021 09:06:34 +0000 (11:06 +0200)
The setter allows setting NULL so this can clearly also return NULL
under normal circumstances.

Same for the corresponding API in GtkSearchEntry.

gtk/gtksearchbar.c
gtk/gtksearchentry.c

index 7be0f004ef2f5c3f654e7f3ac54f2d2162529ffe..edb9094db8523a9d8f0cd5295c830d40b2d37b04 100644 (file)
@@ -663,7 +663,7 @@ gtk_search_bar_set_key_capture_widget (GtkSearchBar *bar,
  *
  * Gets the widget that @bar is capturing key events from.
  *
- * Returns: (transfer none): The key capture widget.
+ * Returns: (nullable) (transfer none): The key capture widget.
  **/
 GtkWidget *
 gtk_search_bar_get_key_capture_widget (GtkSearchBar *bar)
index 6708fcc3af75e828871683435ea79df6f7d00a5c..2e30446a4d63afa8cb041031f2027ac38805d85c 100644 (file)
@@ -763,7 +763,7 @@ gtk_search_entry_set_key_capture_widget (GtkSearchEntry *entry,
  *
  * Gets the widget that @entry is capturing key events from.
  *
- * Returns: (transfer none): The key capture widget.
+ * Returns: (nullable) (transfer none): The key capture widget.
  */
 GtkWidget *
 gtk_search_entry_get_key_capture_widget (GtkSearchEntry *entry)