diff options
author | Alejandro Piñeiro <apinheiro@igalia.com> | 2013-10-01 19:05:42 +0200 |
---|---|---|
committer | Alejandro Piñeiro <apinheiro@igalia.com> | 2013-11-06 18:11:16 +0100 |
commit | 3fec449edc8ea6ccfcc8759937bfa167e6246420 (patch) | |
tree | 172fce178a55bda50664b9e29308fa58d03701a9 | |
parent | 1a153063a4750ad164aea87d4e872a75434ecac9 (diff) | |
download | atk-3fec449edc8ea6ccfcc8759937bfa167e6246420.tar.gz |
atkdocument: add page-changed signal
https://bugzilla.gnome.org/show_bug.cgi?id=709106
-rwxr-xr-x | 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; } } |