[gtk/prop-list: 18/70] numericsorter: Small documentation improvements
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/prop-list: 18/70] numericsorter: Small documentation improvements
- Date: Sun, 22 Dec 2019 03:24:59 +0000 (UTC)
commit dd47fa777aa1b899634b70c54340a644f95e14eb
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 18 22:36:22 2019 -0500
numericsorter: Small documentation improvements
gtk/gtknumericsorter.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtknumericsorter.c b/gtk/gtknumericsorter.c
index d8575458fe..253fd201d7 100644
--- a/gtk/gtknumericsorter.c
+++ b/gtk/gtknumericsorter.c
@@ -276,7 +276,7 @@ gtk_numeric_sorter_class_init (GtkNumericSorterClass *class)
/**
* GtkNumericSorter:expression:
*
- * The expression to evalute on item to get a numeric to compare with
+ * The expression to evalute on items to get a number to compare with
*/
properties[PROP_EXPRESSION] =
g_param_spec_boxed ("expression",
@@ -310,7 +310,7 @@ gtk_numeric_sorter_init (GtkNumericSorter *self)
/**
* gtk_numeric_sorter_new:
- * @expression: (transfer full) (nullable): The expression to evaulate
+ * @expression: (transfer full) (nullable): The expression to evaluate
*
* Creates a new numeric sorter using the given @expression.
*
@@ -359,7 +359,8 @@ gtk_numeric_sorter_get_expression (GtkNumericSorter *self)
* Unless an expression is set on @self, the sorter will always
* compare items as invalid.
*
- * The expression must have a return type that can be compared numerically.
+ * The expression must have a return type that can be compared
+ * numerically, such as #G_TYPE_INT or #G_TYPE_DOUBLE.
*/
void
gtk_numeric_sorter_set_expression (GtkNumericSorter *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]