[gtk: 1/2] Added information, that "attributes" refer to CellRenderer "properties".
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] Added information, that "attributes" refer to CellRenderer "properties".
- Date: Fri, 4 Jun 2021 02:21:34 +0000 (UTC)
commit a0c23b1c3d44456c48a2ccc1ff61c189e7945bc4
Author: DarkTrick <notebook22312 gmail com>
Date: Fri Jun 4 02:21:31 2021 +0000
Added information, that "attributes" refer to CellRenderer "properties".
gtk/gtkcelllayout.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcelllayout.c b/gtk/gtkcelllayout.c
index e8c9a0c805..7a7509d6e8 100644
--- a/gtk/gtkcelllayout.c
+++ b/gtk/gtkcelllayout.c
@@ -436,7 +436,10 @@ gtk_cell_layout_set_attributesv (GtkCellLayout *cell_layout,
* @cell: a `GtkCellRenderer`
* @...: a %NULL-terminated list of attributes
*
- * Sets the attributes in list as the attributes of @cell_layout.
+ * Sets the attributes in the parameter list as the attributes
+ * of @cell_layout.
+ *
+ * See [method@Gtk.CellLayout.add_attribute] for more details.
*
* The attributes should be in attribute/column order, as in
* gtk_cell_layout_add_attribute(). All existing attributes are
@@ -461,15 +464,16 @@ gtk_cell_layout_set_attributes (GtkCellLayout *cell_layout,
* gtk_cell_layout_add_attribute:
* @cell_layout: a `GtkCellLayout`
* @cell: a `GtkCellRenderer`
- * @attribute: an attribute on the renderer
+ * @attribute: a property on the renderer
* @column: the column position on the model to get the attribute from
*
* Adds an attribute mapping to the list in @cell_layout.
*
* The @column is the column of the model to get a value from, and the
- * @attribute is the parameter on @cell to be set from the value. So for
+ * @attribute is the property on @cell to be set from that value. So for
* example if column 2 of the model contains strings, you could have the
* “text” attribute of a `GtkCellRendererText` get its values from column 2.
+ * In this context "attribute" and "property" are used interchangeably.
*/
void
gtk_cell_layout_add_attribute (GtkCellLayout *cell_layout,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]