summaryrefslogtreecommitdiff
path: root/atk/atkdocument.c
diff options
context:
space:
mode:
authorAlejandro Piñeiro <apinheiro@igalia.com>2013-08-12 17:07:46 +0200
committerAlejandro Piñeiro <apinheiro@igalia.com>2013-08-12 21:06:36 +0200
commit0f1e31ad2451b1e00f631e217d9d29d306404f2d (patch)
tree9df22ec49c982912979aa6b907dd25dc27fccd96 /atk/atkdocument.c
parentc568794a6f75cc9cc297b24978bc7480ee689bea (diff)
downloadat-spi2-core-0f1e31ad2451b1e00f631e217d9d29d306404f2d.tar.gz
doc: removing several .sgml files and fixing gtk-doc warnings
The static documentation of those .sgml (so the reason of tracking those objects) where moved to the source files. Some other stuff was changed in order to prevent gtk-doc warnings (like replacing "Returns blah" for the correct "Returns: blah") https://bugzilla.gnome.org/show_bug.cgi?id=684665
Diffstat (limited to 'atk/atkdocument.c')
-rwxr-xr-xatk/atkdocument.c52
1 files changed, 52 insertions, 0 deletions
diff --git a/atk/atkdocument.c b/atk/atkdocument.c
index 81e27c59..bf5cc9a2 100755
--- a/atk/atkdocument.c
+++ b/atk/atkdocument.c
@@ -19,6 +19,22 @@
#include "atkdocument.h"
+/**
+ * SECTION:atkdocument
+ * @Short_description: The ATK interface which represents the toplevel
+ * container for document content.
+ * @Title:AtkDocument
+ *
+ * The AtkDocument interface should be supported by any object whose
+ * content is a representation or view of a document. The AtkDocument
+ * interface should appear on the toplevel container for the document
+ * content; however AtkDocument instances may be nested (i.e. an
+ * AtkDocument may be a descendant of another AtkDocument) in those
+ * cases where one document contains "embedded content" which can
+ * reasonably be considered a document in its own right.
+ *
+ */
+
enum {
LOAD_COMPLETE,
RELOAD,
@@ -56,6 +72,20 @@ atk_document_base_init (AtkDocumentIface *class)
static gboolean initialized = FALSE;
if (!initialized)
{
+ /**
+ * AtkDocument::load-complete:
+ * @atkdocument: the object which received the signal.
+ *
+ * The 'load-complete' signal is emitted when a pending load of
+ * a static document has completed. This signal is to be
+ * expected by ATK clients if and when AtkDocument implementors
+ * expose ATK_STATE_BUSY. If the state of an AtkObject which
+ * implements AtkDocument does not include ATK_STATE_BUSY, it
+ * should be safe for clients to assume that the AtkDocument's
+ * static contents are fully loaded into the container.
+ * (Dynamic document contents should be exposed via other
+ * signals.)
+ */
atk_document_signals[LOAD_COMPLETE] =
g_signal_new ("load_complete",
ATK_TYPE_DOCUMENT,
@@ -64,6 +94,16 @@ atk_document_base_init (AtkDocumentIface *class)
(GSignalAccumulator) NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
+ /**
+ * AtkDocument::reload:
+ * @atkdocument: the object which received the signal.
+ *
+ * The 'reload' signal is emitted when the contents of a
+ * document is refreshed from its source. Once 'reload' has
+ * been emitted, a matching 'load-complete' or 'load-stopped'
+ * signal should follow, which clients may await before
+ * interrogating ATK for the latest document content.
+ */
atk_document_signals[RELOAD] =
g_signal_new ("reload",
ATK_TYPE_DOCUMENT,
@@ -72,6 +112,18 @@ atk_document_base_init (AtkDocumentIface *class)
(GSignalAccumulator) NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
+
+ /**
+ * AtkDocument::load-stopped:
+ * @atkdocument: the object which received the signal.
+ *
+ * The 'load-stopped' signal is emitted when a pending load of
+ * document contents is cancelled, paused, or otherwise
+ * interrupted by the user or application logic. It should not
+ * however be emitted while waiting for a resource (for instance
+ * while blocking on a file or network read) unless a
+ * user-significant timeout has occurred.
+ */
atk_document_signals[LOAD_STOPPED] =
g_signal_new ("load_stopped",
ATK_TYPE_DOCUMENT,