[gtk: 1/2] GtkSearchBar - Mark get_key_capture_widget() return value as nullable




commit aa289d102354bd43b54ca74ce27a57059283d2b9
Author: Sebastian Dröge <sebastian centricular com>
Date:   Sun Dec 26 11:03:25 2021 +0200

    GtkSearchBar - Mark get_key_capture_widget() return value as nullable
    
    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   | 2 +-
 gtk/gtksearchentry.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c
index 7be0f004ef..edb9094db8 100644
--- a/gtk/gtksearchbar.c
+++ b/gtk/gtksearchbar.c
@@ -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)
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c
index 6708fcc3af..2e30446a4d 100644
--- a/gtk/gtksearchentry.c
+++ b/gtk/gtksearchentry.c
@@ -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)


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