[gtk+] GtkLinkButtonAccessible: fix broken AtkHyperlink implementation



commit e375b564fb2b8a4750a8e9a756dbc6c94b0de566
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 3 21:58:31 2014 -0500

    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.

 gtk/a11y/gtklinkbuttonaccessible.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/gtk/a11y/gtklinkbuttonaccessible.c b/gtk/a11y/gtklinkbuttonaccessible.c
index bac91cf..947acc2 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


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