summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c054060)
raw | patch | inline | side by side (parent: c054060)
author | joncruz <joncruz@users.sourceforge.net> | |
Fri, 27 Jun 2008 08:23:07 +0000 (08:23 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Fri, 27 Jun 2008 08:23:07 +0000 (08:23 +0000) |
src/inkscape.cpp | patch | blob | history |
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index e3667e1f3f66bdf7824d856d547fdb30046cf76a..c978fc3c7375496b118b104c234f69d5b3cc3623 100644 (file)
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
// 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
}
}