X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=atk%2Fatkhyperlink.c;h=ae2e2e76b0eff9af0b6fdc7a177167438ed62e50;hb=refs%2Fchanges%2F24%2F93124%2F1;hp=3fc902dac7e38a72abec7022d6a8db8105a7f90b;hpb=41d9865761b1e69498a49e868a9fc48f6f81476a;p=platform%2Fupstream%2Fatk.git diff --git a/atk/atkhyperlink.c b/atk/atkhyperlink.c index 3fc902d..ae2e2e7 100755 --- a/atk/atkhyperlink.c +++ b/atk/atkhyperlink.c @@ -17,8 +17,23 @@ * Boston, MA 02111-1307, USA. */ +#include "config.h" #include "atkhyperlink.h" -#include "atkintl.h" +#include + +/** + * SECTION:atkhyperlink + * @Short_description: An ATK object which encapsulates a link or set + * of links in a hypertext document. + * @Title:AtkHyperlink + * + * An ATK object which encapsulates a link or set of links (for + * instance in the case of client-side image maps) in a hypertext + * document. It may implement the AtkAction interface. AtkHyperlink + * may also be used to refer to inline embedded content, since it + * allows specification of a start and end offset within the host + * AtkHypertext object. + */ enum { @@ -97,6 +112,14 @@ atk_hyperlink_class_init (AtkHyperlinkClass *klass) klass->link_activated = NULL; + /** + * AtkHyperlink:selected-link: + * + * Selected link + * + * Deprecated: 1.8: Please use ATK_STATE_FOCUSABLE for all links, and + * ATK_STATE_FOCUSED for focused links. + */ g_object_class_install_property (gobject_class, PROP_SELECTED_LINK, g_param_spec_boolean ("selected-link", @@ -131,6 +154,13 @@ atk_hyperlink_class_init (AtkHyperlinkClass *klass) G_MAXINT, 0, G_PARAM_READABLE)); + + /** + * AtkHyperlink::link-activated: + * @atkhyperlink: the object which received the signal. + * + * The signal link-activated is emitted when a link is activated. + */ atk_hyperlink_signals[LINK_ACTIVATED] = g_signal_new ("link_activated", G_TYPE_FROM_CLASS (klass), @@ -162,7 +192,8 @@ atk_hyperlink_real_get_property (GObject *object, switch (prop_id) { case PROP_SELECTED_LINK: - g_value_set_boolean (value, atk_hyperlink_is_selected_link (link)); + // This property is deprecated, also the method to get the value + g_value_set_boolean (value, FALSE); break; case PROP_NUMBER_ANCHORS: g_value_set_int (value, atk_hyperlink_get_n_anchors (link)); @@ -311,7 +342,7 @@ atk_hyperlink_is_valid (AtkHyperlink *link) * content inline. Ordinary HTML links will usually return * %FALSE, but an inline <src> HTML element will return * %TRUE. -a * + * * Returns: whether or not this link displays its content inline. * **/ @@ -359,11 +390,10 @@ atk_hyperlink_get_n_anchors (AtkHyperlink *link) * * Since: 1.4 * - * @Deprecated: This method is deprecated since ATK version 1.8. - * Please use ATK_STATE_SELECTED to indicate when a hyperlink within a - * Hypertext container is selected. + * Deprecated: 1.8: Please use ATK_STATE_FOCUSABLE for all links, + * and ATK_STATE_FOCUSED for focused links. * - * Returns: True is the AtkHyperlink is selected, False otherwise + * Returns: True if the AtkHyperlink is selected, False otherwise **/ gboolean atk_hyperlink_is_selected_link (AtkHyperlink *link)