From: Matthias Clasen Date: Sat, 28 Dec 2019 14:59:38 +0000 (-0500) Subject: accellabel: Don't mention GtkMenuItem in the docs X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~486^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a2aefa83bb75afa3b37da2c8f4f9976ad75a9fc9;p=gtk4.git accellabel: Don't mention GtkMenuItem in the docs --- diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c index 3cd5f81495..65c8b4b7f5 100644 --- a/gtk/gtkaccellabel.c +++ b/gtk/gtkaccellabel.c @@ -57,16 +57,14 @@ * the accelerators which have been added to a particular widget. This widget is * set by calling gtk_accel_label_set_accel_widget(). * - * For example, a #GtkMenuItem widget may have an accelerator added to emit + * For example, a menu item may have an accelerator added to emit * the “activate” signal when the “Ctrl+S” key combination is pressed. - * A #GtkAccelLabel is created and added to the #GtkMenuItem, and - * gtk_accel_label_set_accel_widget() is called with the #GtkMenuItem as the + * A #GtkAccelLabel is created and added to the menu item widget, and + * gtk_accel_label_set_accel_widget() is called with the item as the * second argument. The #GtkAccelLabel will now display “Ctrl+S” after its label. * - * Note that creating a #GtkMenuItem with gtk_menu_item_new_with_label() (or - * one of the similar functions for #GtkCheckMenuItem and #GtkRadioMenuItem) - * automatically adds a #GtkAccelLabel to the #GtkMenuItem and calls - * gtk_accel_label_set_accel_widget() to set it up for you. + * Note that accel labels are typically set up automatically when menus + * are created. * * A #GtkAccelLabel will only display accelerators which have %GTK_ACCEL_VISIBLE * set (see #GtkAccelFlags). @@ -367,8 +365,8 @@ gtk_accel_label_get_accel_widget (GtkAccelLabel *accel_label) * @accel_label: a #GtkAccelLabel. * * Returns the width needed to display the accelerator key(s). - * This is used by menus to align all of the #GtkMenuItem widgets, and shouldn't - * be needed by applications. + * This is used by menus to align all of the menu item widgets, + * and shouldn't be needed by applications. * * Returns: the width needed to display the accelerator key(s). */