From: joncruz Date: Fri, 27 Jun 2008 08:23:07 +0000 (+0000) Subject: Added conditional fallback for call in GLib 2.14+ X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5d0b21ece5dcf0880147dced446995a109b482db;p=inkscape.git Added conditional fallback for call in GLib 2.14+ --- 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 } }