Merge branch 'menutoolbutton-missing-api-docs' into 'master'

menutoolbutton: Add missing public API documentation.

See merge request GNOME/gtk!1303
This commit is contained in:
Matthias Clasen 2020-01-13 00:50:58 +00:00
commit de5fde1e12

View File

@ -377,6 +377,16 @@ gtk_menu_tool_button_set_popover (GtkMenuToolButton *button,
g_object_notify (G_OBJECT (button), "popover"); g_object_notify (G_OBJECT (button), "popover");
} }
/**
* gtk_menu_tool_button_get_popover:
* @menu_button: a #GtkMenuToolButton
*
* Returns the #GtkPopover that pops out of the button.
* If the button is not using a #GtkPopover, this function
* returns %NULL.
*
* Returns: (nullable) (transfer none): a #GtkPopover or %NULL
**/
GtkWidget * GtkWidget *
gtk_menu_tool_button_get_popover (GtkMenuToolButton *button) gtk_menu_tool_button_get_popover (GtkMenuToolButton *button)
{ {