diff options
author | Padraig O'Briain <padraig.obriain@sun.com> | 2003-01-30 17:09:06 +0000 |
---|---|---|
committer | Padraig O'Briain <padraigo@src.gnome.org> | 2003-01-30 17:09:06 +0000 |
commit | bde02d93a1431b802e8d0fde3b7840bfc69698dc (patch) | |
tree | 3ddbd079eb5ad91fbfaba507f0eb051e903ff26c /atk/atkhypertext.c | |
parent | 6a8e887528299abe8520cad7bdd2cc03024ff1f0 (diff) | |
download | at-spi2-core-bde02d93a1431b802e8d0fde3b7840bfc69698dc.tar.gz |
New functions which checks whether the specified AtkHyperlink is selected
2003-01-30 Padraig O'Briain <padraig.obriain@sun.com>
* atk/atkhyperlink.[ch]
New property selected-link defined.
Function pointer is_selected_link added to interface
(atk_hyperlink_is_selected_link: New functions which checks
whether the specified AtkHyperlink is selected
* atk/atkhypertext.[ch]
New signal link-selected added.
* docs/atk-sections.txt: Add atk_hyperlink_is_selected_link
* docs/tmpl/atkhyperlink.sgml: Add reference to property selected-link
and function atk_hyperlink_is_selected_link.
This fixes bug #104621.
Diffstat (limited to 'atk/atkhypertext.c')
-rwxr-xr-x | atk/atkhypertext.c | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/atk/atkhypertext.c b/atk/atkhypertext.c index 328317ed..cfca58e9 100755 --- a/atk/atkhypertext.c +++ b/atk/atkhypertext.c @@ -19,6 +19,16 @@ #include "atkhypertext.h" +enum { + LINK_SELECTED, + LAST_SIGNAL +}; + +static void atk_hypertext_base_init (AtkHypertextIface *class); + +static guint atk_hypertext_signals[LAST_SIGNAL] = { 0 }; + + GType atk_hypertext_get_type () { @@ -28,7 +38,7 @@ atk_hypertext_get_type () static const GTypeInfo tinfo = { sizeof (AtkHypertextIface), - (GBaseInitFunc) NULL, + (GBaseInitFunc) atk_hypertext_base_init, (GBaseFinalizeFunc) NULL, }; @@ -39,6 +49,27 @@ atk_hypertext_get_type () return type; } +static void +atk_hypertext_base_init (AtkHypertextIface *class) +{ + static gboolean initialized = FALSE; + + if (!initialized) + { + atk_hypertext_signals[LINK_SELECTED] = + g_signal_new ("link_selected", + ATK_TYPE_HYPERTEXT, + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (AtkHypertextIface, link_selected), + (GSignalAccumulator) NULL, NULL, + g_cclosure_marshal_VOID__INT, + G_TYPE_NONE, + 1, G_TYPE_INT); + + initialized = TRUE; + } +} + /** * atk_hypertext_get_link: * @hypertext: an #AtkHypertext |