From 3fec449edc8ea6ccfcc8759937bfa167e6246420 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alejandro=20Pi=C3=B1eiro?= Date: Tue, 1 Oct 2013 19:05:42 +0200 Subject: [PATCH] atkdocument: add page-changed signal https://bugzilla.gnome.org/show_bug.cgi?id=709106 --- atk/atkdocument.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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; } } -- 2.7.4