Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-07-29 16:10:27 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-07-29 16:10:27 (GMT)
commit0de4e4076b4198674b6fa77c8281cd62a293f2fe (patch)
treef07dac3c125ed3c1d615b954afb9dc9407ccc20b /shell/ev-view.c
parent5a3601d1ccfc1adf3f91e60f6de27e3ee1a5c6a2 (diff)
Use g_timeout_add_seconds instead of g_timeout_add when available.
2007-07-29 Carlos Garcia Campos <carlosgc@gnome.org> * cut-n-paste/totem-screensaver/totem-scrsaver.c: (screensaver_disable_x11): * shell/ev-metadata-manager.c: (ev_metadata_arm_timeout): * shell/ev-window.c: (presentation_set_timeout): * shell/ev-view.c: (ev_view_presentation_transition_start): Use g_timeout_add_seconds instead of g_timeout_add when available. svn path=/trunk/; revision=2594
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index c4ec8db..1f9e824 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -4352,10 +4352,19 @@ ev_view_presentation_transition_start (EvView *view)
duration = ev_document_transition_get_page_duration (EV_DOCUMENT_TRANSITION (view->document),
view->current_page);
- if (duration > 0)
- view->trans_timeout_id = g_timeout_add (duration * 1000,
- (GSourceFunc) transition_next_page,
- view);
+ if (duration > 0) {
+#if GLIB_CHECK_VERSION (2, 13, 0)
+ view->trans_timeout_id =
+ g_timeout_add_seconds (duration,
+ (GSourceFunc) transition_next_page,
+ view);
+#else
+ view->trans_timeout_id =
+ g_timeout_add (duration * 1000,
+ (GSourceFunc) transition_next_page,
+ view);
+#endif
+ }
}
void