[atk] atkdocument: add page-changed signal
- From: Alejandro Piñeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atk] atkdocument: add page-changed signal
- Date: Wed, 6 Nov 2013 17:11:36 +0000 (UTC)
commit 3fec449edc8ea6ccfcc8759937bfa167e6246420
Author: Alejandro Piñeiro <apinheiro igalia com>
Date: Tue Oct 1 19:05:42 2013 +0200
atkdocument: add page-changed signal
https://bugzilla.gnome.org/show_bug.cgi?id=709106
atk/atkdocument.c | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/atk/atkdocument.c b/atk/atkdocument.c
index bf5cc9a..35d7bfe 100755
--- a/atk/atkdocument.c
+++ b/atk/atkdocument.c
@@ -39,6 +39,7 @@ enum {
LOAD_COMPLETE,
RELOAD,
LOAD_STOPPED,
+ PAGE_CHANGED,
LAST_SIGNAL
};
@@ -133,6 +134,27 @@ atk_document_base_init (AtkDocumentIface *class)
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
+ /**
+ * AtkDocument::page-changed:
+ * @atkdocument: the object on which the signal was emitted
+ * @page_number: the new page number. If this value is unknown
+ * or not applicable, -1 should be provided.
+ *
+ * The 'page-changed' signal is emitted when the current page of
+ * a document changes, e.g. pressing page up/down in a document
+ * viewer.
+ *
+ * Since: 2.12
+ */
+ atk_document_signals[PAGE_CHANGED] =
+ g_signal_new ("page_changed",
+ ATK_TYPE_DOCUMENT,
+ G_SIGNAL_RUN_LAST,
+ 0,
+ (GSignalAccumulator) NULL, NULL,
+ g_cclosure_marshal_VOID__INT,
+ G_TYPE_NONE, 1, G_TYPE_INT);
+
initialized = TRUE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]