| 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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user