[gtk/ebassi/a11y/accessible-range: 11/14] Document that this will be available only in GTK 4.10




commit 7fb892460a9797fbedb212caf4b98dbaee7fa41d
Author: Lukáš Tyrychtr <lukastyrychtr gmail com>
Date:   Mon Sep 19 16:40:03 2022 +0200

    Document that this will be available only in GTK 4.10

 gtk/gtkaccessiblerange.c | 8 +++++++-
 gtk/gtkaccessiblerange.h | 8 ++++++--
 2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkaccessiblerange.c b/gtk/gtkaccessiblerange.c
index 228899964f..a99d2b6a30 100644
--- a/gtk/gtkaccessiblerange.c
+++ b/gtk/gtkaccessiblerange.c
@@ -36,6 +36,8 @@
  * For controls where a minimum increment makes no sense and which do not allow
  * setting the current value from the user, the default implementation of this
  * interface suffices.
+ *
+ * Since: 4.10
  */
 
 #include "config.h"
@@ -70,6 +72,8 @@ gtk_accessible_range_default_init (GtkAccessibleRangeInterface *iface)
  * Returns the minimum increment which this `GtkAccessibleRange` supports.
  *
  * Returns: the minimum increment, or 0.0 if not overridden
+ *
+ * Since: 4.10
  */
 double
 gtk_accessible_range_get_minimum_increment (GtkAccessibleRange *self)
@@ -83,11 +87,13 @@ gtk_accessible_range_get_minimum_increment (GtkAccessibleRange *self)
  * gtk_accessible_range_set_current_value:
  * @self: a `GtkAccessibleRange`
  *
- * Sets the current value of this `GtkAccessibleRange`.
+ * Sets the current value of this `GtkAccessibleRange` to @value.
  * Note that for some widgets implementing this interface, setting a value
  * through the accessibility API makes no sense, so calling this function may
  * in some cases do nothing.
  * @returns: %true if the call changed the value, %false otherwise
+ *
+ * Since: 4.10
  */
 gboolean
 gtk_accessible_range_set_current_value (GtkAccessibleRange *self, double value)
diff --git a/gtk/gtkaccessiblerange.h b/gtk/gtkaccessiblerange.h
index 317bcf39b9..c825d6132d 100644
--- a/gtk/gtkaccessiblerange.h
+++ b/gtk/gtkaccessiblerange.h
@@ -44,7 +44,9 @@ struct _GtkAccessibleRangeInterface
    * Returns the minimum increment for this `GtkAccessibleRange`.
    * The default implementation returns 0.0, which indicates that a minimum
    * increment does not make sense for this implementation.
-   * @returns: the minimum increment
+   * Returns: the minimum increment
+   * 
+   * Since: 4.10
    */
   double (* get_minimum_increment) (GtkAccessibleRange *self);
   /**
@@ -54,7 +56,9 @@ struct _GtkAccessibleRangeInterface
    * 
    * Sets the current value of @self to @value.
    * This operation should behave similarly as if the user performed the action.
-   * @returns: %true if the operation was performed, %false otherwise
+   * Returns: %true if the operation was performed, %false otherwise
+   *
+   * Since: 4.10
    */
   gboolean (* set_current_value) (GtkAccessibleRange *self, double value);
 };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]