diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-06-27 08:23:07 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-06-27 08:23:07 +0000 |
| commit | 4c7e2f33083450a76afb0ffe3c5670c944c7f6b8 (patch) | |
| tree | b3e566f44b0d37de66273b212b73f28efcf0165f /src/inkscape.cpp | |
| parent | use spcurve methods instead of macro (which references to old nartbpath) to d... (diff) | |
| download | inkscape-4c7e2f33083450a76afb0ffe3c5670c944c7f6b8.tar.gz inkscape-4c7e2f33083450a76afb0ffe3c5670c944c7f6b8.zip | |
Added conditional fallback for call in GLib 2.14+
(bzr r6080)
Diffstat (limited to 'src/inkscape.cpp')
| -rw-r--r-- | src/inkscape.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp index e3667e1f3..c978fc3c7 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -450,7 +450,11 @@ void inkscape_autosave_init() // Turn on autosave guint32 timeout = prefs_get_int_attribute("options.autosave", "interval", 10) * 60; // g_debug("options.autosave.interval = %lld", prefs_get_int_attribute("options.autosave", "interval", 10)); +#if GLIB_CHECK_VERSION(2,14,0) autosave_timeout_id = g_timeout_add_seconds(timeout, inkscape_autosave, NULL); +#else + autosave_timeout_id = g_timeout_add(timeout * 1000, inkscape_autosave, NULL); +#endif } } |
