dropdown: Annotate the get_selected_item method

We need to specify the type as we already know that it is at least a GObject and in case of no selection, NULL is returned.
This commit is contained in:
Corentin Noël 2020-06-26 09:59:12 +02:00 committed by Corentin Noël
parent 0ef0edfa9a
commit 721396b6d6

View File

@ -821,7 +821,7 @@ gtk_drop_down_get_selected (GtkDropDown *self)
* *
* Gets the selected item. If no item is selected, %NULL is returned. * Gets the selected item. If no item is selected, %NULL is returned.
* *
* Returns: (transfer none): The selected item * Returns: (transfer none) (type GObject) (nullable): The selected item
*/ */
gpointer gpointer
gtk_drop_down_get_selected_item (GtkDropDown *self) gtk_drop_down_get_selected_item (GtkDropDown *self)