summaryrefslogtreecommitdiff
path: root/gtk/a11y
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-01-03 21:58:31 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-01-04 10:54:03 -0500
commite375b564fb2b8a4750a8e9a756dbc6c94b0de566 (patch)
tree926a6f9a6711b53e6d10c24ccf8f55d1a6d351f8 /gtk/a11y
parent57d1e6d17d02137448ba2ec6c5bd4a5445441f5d (diff)
downloadgtk+-e375b564fb2b8a4750a8e9a756dbc6c94b0de566.tar.gz
GtkLinkButtonAccessible: fix broken AtkHyperlink implementation
The get_end_index implementation was casting the accessible to AtkText even though GtkLinkButtonAccessible does not implement this interface. This did not show up in the a11y tests because the they were not dumping the affected AtkHyperlinkImpl properties. Oops.
Diffstat (limited to 'gtk/a11y')
-rw-r--r--gtk/a11y/gtklinkbuttonaccessible.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gtk/a11y/gtklinkbuttonaccessible.c b/gtk/a11y/gtklinkbuttonaccessible.c
index bac91cf7f8..947acc215a 100644
--- a/gtk/a11y/gtklinkbuttonaccessible.c
+++ b/gtk/a11y/gtklinkbuttonaccessible.c
@@ -93,20 +93,6 @@ gtk_link_button_accessible_link_get_object (AtkHyperlink *atk_link,
return ATK_OBJECT (l->button);
}
-static gint
-gtk_link_button_accessible_link_get_start_index (AtkHyperlink *atk_link)
-{
- return 0;
-}
-
-static gint
-gtk_link_button_accessible_link_get_end_index (AtkHyperlink *atk_link)
-{
- GtkLinkButtonAccessibleLink *l = (GtkLinkButtonAccessibleLink *)atk_link;
-
- return atk_text_get_character_count (ATK_TEXT (l->button));
-}
-
static void
_gtk_link_button_accessible_link_init (GtkLinkButtonAccessibleLink *l)
{
@@ -121,8 +107,6 @@ _gtk_link_button_accessible_link_class_init (GtkLinkButtonAccessibleLinkClass *c
atk_link_class->get_n_anchors = gtk_link_button_accessible_link_get_n_anchors;
atk_link_class->is_valid = gtk_link_button_accessible_link_is_valid;
atk_link_class->get_object = gtk_link_button_accessible_link_get_object;
- atk_link_class->get_start_index = gtk_link_button_accessible_link_get_start_index;
- atk_link_class->get_end_index = gtk_link_button_accessible_link_get_end_index;
}
static gboolean