gtk: add nullable annotations to PopoverMenuBar/PopoverMenu

The constructor/setter accepts a null as a model so should the getter
This commit is contained in:
Bilal Elmoussaoui 2022-01-01 17:45:08 +01:00
parent ddb2e91a42
commit 95169ad54b
2 changed files with 2 additions and 2 deletions

View File

@ -819,7 +819,7 @@ gtk_popover_menu_set_menu_model (GtkPopoverMenu *popover,
*
* Returns the menu model used to populate the popover.
*
* Returns: (transfer none): the menu model of @popover
* Returns: (transfer none) (nullable): the menu model of @popover
*/
GMenuModel *
gtk_popover_menu_get_menu_model (GtkPopoverMenu *popover)

View File

@ -746,7 +746,7 @@ gtk_popover_menu_bar_set_menu_model (GtkPopoverMenuBar *bar,
*
* Returns the model from which the contents of @bar are taken.
*
* Returns: (transfer none): a `GMenuModel`
* Returns: (transfer none) (nullable): a `GMenuModel`
*/
GMenuModel *
gtk_popover_menu_bar_get_menu_model (GtkPopoverMenuBar *bar)