summaryrefslogtreecommitdiff
path: root/atk
diff options
context:
space:
mode:
authorPadraig O'Briain <padraig.obriain@sun.com>2003-02-12 17:44:49 +0000
committerPadraig O'Briain <padraigo@src.gnome.org>2003-02-12 17:44:49 +0000
commit53e2b80dea284acfb659c22fcecf59b13e47ce74 (patch)
tree4c8bedb12c5745650500c897000bf3a0413ef765 /atk
parentf29c38b636b6a1373940dd55e46e4e075399c365 (diff)
downloadatk-53e2b80dea284acfb659c22fcecf59b13e47ce74.tar.gz
Correct typo in blurb
2003-02-12 Padraig O'Briain <padraig.obriain@sun.com> * atk/atkhyperlink.c (atk_hyperlink_class_init): Correct typo in blurb * atk/atkhypertext.c (atk_hypertext_get_link): Add check on link_index value (atk_hypertext_get_link_index): Add check on char_index value
Diffstat (limited to 'atk')
-rwxr-xr-xatk/atkhyperlink.c4
-rwxr-xr-xatk/atkhypertext.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/atk/atkhyperlink.c b/atk/atkhyperlink.c
index f4e5588..0b61853 100755
--- a/atk/atkhyperlink.c
+++ b/atk/atkhyperlink.c
@@ -1,5 +1,5 @@
/* ATK - Accessibility Toolkit
- * Copyright 2001 Sun Microsystems Inc.
+ * Copyright 2001, 2002, 2003 Sun Microsystems Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -86,7 +86,7 @@ atk_hyperlink_class_init (AtkHyperlinkClass *klass)
PROP_SELECTED_LINK,
g_param_spec_boolean ("selected-link",
"Selected Link",
- "Specifies whether theAtkHyperlink object is selected",
+ "Specifies whether the AtkHyperlink object is selected",
FALSE,
G_PARAM_READABLE));
}
diff --git a/atk/atkhypertext.c b/atk/atkhypertext.c
index cfca58e..6da5030 100755
--- a/atk/atkhypertext.c
+++ b/atk/atkhypertext.c
@@ -1,5 +1,5 @@
/* ATK - The Accessibility Toolkit for GTK+
- * Copyright 2001 Sun Microsystems Inc.
+ * Copyright 2001, 2002, 2003 Sun Microsystems Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -89,6 +89,9 @@ atk_hypertext_get_link (AtkHypertext *hypertext,
g_return_val_if_fail (ATK_IS_HYPERTEXT (hypertext), NULL);
+ if (link_index < 0)
+ return NULL;
+
iface = ATK_HYPERTEXT_GET_IFACE (hypertext);
if (iface->get_link)
@@ -139,6 +142,9 @@ atk_hypertext_get_link_index (AtkHypertext *hypertext,
g_return_val_if_fail (ATK_IS_HYPERTEXT (hypertext), -1);
+ if (char_index < 0)
+ return -1;
+
iface = ATK_HYPERTEXT_GET_IFACE (hypertext);
if (iface->get_link_index)