summaryrefslogtreecommitdiff
path: root/gtk/gtkrange.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2022-09-30 18:31:55 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2022-09-30 18:36:02 +0100
commit31fea11255adf54b1ed450c86ad07be70c504aab (patch)
treefb778d01542e173f706dadc66d874cedaa8539c5 /gtk/gtkrange.c
parent5dd7e248061051acd692f78519c1094c090c7c50 (diff)
downloadgtk+-ebassi/a11y/accessible-range.tar.gz
a11y: Drop GtkAccessibleRange.get_minimum_increment()ebassi/a11y/accessible-range
MinimumIncrement is an AT-SPI-ism that has no counterpart in the ARIA specification, so it should not live inside public API. Additionally, it's not really a useful method because it collapses two values on the adjustment API. The only method in the GtkAccessibleRange interface should be the set_current_value(), which allows ATs to control the current position in a ranged widget. The AT-SPI implementation can now use all the accessible properties, including the VALUE_TEXT one, mapped to the Text property on the AtSpi.Value interface.
Diffstat (limited to 'gtk/gtkrange.c')
-rw-r--r--gtk/gtkrange.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index d38365c04a..6ad7af6d38 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -440,26 +440,19 @@ gtk_range_class_init (GtkRangeClass *class)
gtk_widget_class_set_css_name (widget_class, I_("range"));
}
-static double
-gtk_range_accessible_range_get_minimum_increment (GtkAccessibleRange *accessible_range)
-{
- GtkRange *range = GTK_RANGE (accessible_range);
- return gtk_adjustment_get_minimum_increment (gtk_range_get_adjustment (range));
-}
-
static gboolean
-gtk_range_accessible_range_set_current_value (GtkAccessibleRange *accessible_range, double value)
+accessible_range_set_current_value (GtkAccessibleRange *accessible_range,
+ double value)
{
- GtkRange *range = GTK_RANGE (accessible_range);
- gtk_range_set_value (range, value);
+ gtk_range_set_value (GTK_RANGE (accessible_range), value);
+
return TRUE;
}
static void
gtk_range_accessible_range_init (GtkAccessibleRangeInterface *iface)
{
- iface->get_minimum_increment = gtk_range_accessible_range_get_minimum_increment;
- iface->set_current_value = gtk_range_accessible_range_set_current_value;
+ iface->set_current_value = accessible_range_set_current_value;
}
static void