From 3277e2ee3e7ffaed0818a1a9fbdf32819eba3dc6 Mon Sep 17 00:00:00 2001 From: Cam Cook Date: Sat, 15 Apr 2023 21:48:27 -0400 Subject: [PATCH] | method | current | suggestion | |---------------------------------------------------------------------------------------|-----------------------------------------------------------------|----------------------------------------------------------------------| | [get_attributes](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.c#L3242) | "use`pango_layout_get_attribute (gtk_label_get_layout (self))`" | "use`pango_layout_get_attributes (gtk_label_get_layout (self))`" [1] | | [set_yalign](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.c#L5897) | "(attributes org.gtk.Method.get_property=yalign)" | "(attributes org.gtk.Method.set_property=yalign)" | | [get_yalign](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.c#L5923) | "(attributes org.gtk.Method.set_property=yalign)" | "(attributes org.gtk.Method.get_property=yalign)" | | [set_ellipsize](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.c#L3892) | "to ellipsizei" | "to ellipsize" | | [get_attributes](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtklabel.c#L3239) | "from the labels markup" | "from the label's markup" | [1] https://docs.gtk.org/Pango/method.Layout.get_attributes.html --- gtk/gtklabel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index a9e2d286b7..ccc9b9a85e 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -3236,10 +3236,10 @@ gtk_label_set_attributes (GtkLabel *self, * * This is the [struct@Pango.AttrList] that was set on the label using * [method@Gtk.Label.set_attributes], if any. This function does not - * reflect attributes that come from the labels markup (see + * reflect attributes that come from the label's markup (see * [method@Gtk.Label.set_markup]). If you want to get the effective * attributes for the label, use - * `pango_layout_get_attribute (gtk_label_get_layout (self))`. + * `pango_layout_get_attributes (gtk_label_get_layout (self))`. * * Returns: (nullable) (transfer none): the attribute list */ @@ -3889,7 +3889,7 @@ gtk_label_get_justify (GtkLabel *self) * @self: a `GtkLabel` * @mode: a `PangoEllipsizeMode` * - * Sets the mode used to ellipsizei the text. + * Sets the mode used to ellipsize the text. * * The text will be ellipsized if there is not enough space * to render the entire string. @@ -5894,7 +5894,7 @@ gtk_label_get_xalign (GtkLabel *self) } /** - * gtk_label_set_yalign: (attributes org.gtk.Method.get_property=yalign) + * gtk_label_set_yalign: (attributes org.gtk.Method.set_property=yalign) * @self: a `GtkLabel` * @yalign: the new yalign value, between 0 and 1 * @@ -5920,7 +5920,7 @@ gtk_label_set_yalign (GtkLabel *self, } /** - * gtk_label_get_yalign: (attributes org.gtk.Method.set_property=yalign) + * gtk_label_get_yalign: (attributes org.gtk.Method.get_property=yalign) * @self: a `GtkLabel` * * Gets the `yalign` of the label.