diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2008-01-04 20:25:40 (GMT) |
---|---|---|
committer | Carlos Garnacho <carlosg@src.gnome.org> | 2008-01-04 20:25:40 (GMT) |
commit | f792ebcef8eab6e0b8fc5ff185851d038afbab56 (patch) | |
tree | ed61f397c37659442edfda0da77161c1441d9512 /libdocument/ev-document-transition.c | |
parent | faed7c8e57a32ebdc100e18472c3b1787fa25401 (diff) |
New files, define a page transition effect, at the moment it maps
2008-01-04 Carlos Garnacho <carlosg@gnome.org>
* libdocument/ev-transition-effect.[ch]: New files, define a page
transition effect, at the moment it maps PopplerPageTransition to a
GObject.
* libdocument/Makefile.am: Added these files to build.
* libdocument/ev-document-transition.[ch]
(ev_document_transition_get_effect): New method, gets the
EvTransitionEffect returned by the interface implementation, with
fallback to the "replace" effect.
svn path=/trunk/; revision=2796
Diffstat (limited to 'libdocument/ev-document-transition.c')
-rw-r--r-- | libdocument/ev-document-transition.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libdocument/ev-document-transition.c b/libdocument/ev-document-transition.c index a5a5b24..c8d136a 100644 --- a/libdocument/ev-document-transition.c +++ b/libdocument/ev-document-transition.c @@ -53,4 +53,18 @@ ev_document_transition_get_page_duration (EvDocumentTransition *document_trans, return -1; } +EvTransitionEffect * +ev_document_transition_get_effect (EvDocumentTransition *document_trans, + gint page) +{ + EvDocumentTransitionIface *iface = EV_DOCUMENT_TRANSITION_GET_IFACE (document_trans); + EvTransitionEffect *effect = NULL; + + if (iface->get_effect) + effect = iface->get_effect (document_trans, page); + if (!effect) + return ev_transition_effect_new (EV_TRANSITION_EFFECT_REPLACE, NULL); + + return effect; +} |