diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-04-19 22:50:35 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-04-20 00:38:58 -0400 |
commit | b4c79bad34fa414273dcb5d3bcdf9913c80f57c5 (patch) | |
tree | babb6659edf17a6f30b3b09c1e73f540c1e15dd6 /gtk/gtkpopover.c | |
parent | 013cc096513bcafdb28f687722cf54e38766ee69 (diff) | |
download | gtk+-b4c79bad34fa414273dcb5d3bcdf9913c80f57c5.tar.gz |
Assorted documentation fixes
Diffstat (limited to 'gtk/gtkpopover.c')
-rw-r--r-- | gtk/gtkpopover.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 4a2893b324..ad0ec0f862 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -1741,12 +1741,29 @@ gtk_popover_class_init (GtkPopoverClass *klass) gtk_widget_class_set_css_name (widget_class, "popover"); } +/** + * gtk_popover_new: + * + * Creates a new popover. + * + * Returns: the new popover + */ GtkWidget * gtk_popover_new (void) { return g_object_new (GTK_TYPE_POPOVER, NULL); } +/** + * gtk_popover_set_default_widget: + * @popover: a #GtkPopover + * @widget: (allow-none): a child widget of @popover to set as + * the default, or %NULL to unset the default widget for the popover + * + * The default widget is the widget that’s activated when the user + * presses Enter in a dialog (for example). This function sets or + * unsets the default widget for a #GtkPopover. + */ void gtk_popover_set_default_widget (GtkPopover *popover, GtkWidget *widget) |