[gnote] Add autorync-timeout setting
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Add autorync-timeout setting
- Date: Wed, 25 Jan 2012 22:03:47 +0000 (UTC)
commit e151fdc86385b51c7ba34b4d4ca9e9ae4dda338e
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Tue Jan 24 23:04:44 2012 +0200
Add autorync-timeout setting
data/org.gnome.gnote.gschema.xml.in | 5 +++++
src/preferences.cpp | 1 +
src/preferences.hpp | 1 +
3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/data/org.gnome.gnote.gschema.xml.in b/data/org.gnome.gnote.gschema.xml.in
index 769b611..0bd9e30 100644
--- a/data/org.gnome.gnote.gschema.xml.in
+++ b/data/org.gnome.gnote.gschema.xml.in
@@ -190,6 +190,11 @@
<_summary>Note Synchronization Conflict Saved Behavior</_summary>
<_description>Integer value indicating if there is a preference to always perform a specific behavior when a conflict is detected, instead of prompting the user. The values map to an internal enumeration. 0 indicates that the user wishes to be prompted when a conflict occurs, so that they may handle each conflict situation on a case-by-case basis.</_description>
</key>
+ <key name="autosync-timeout" type="i">
+ <default>-1</default>
+ <_summary>Automatic Background Synchronization Timeout</_summary>
+ <_description>Integer value indicating how frequently to perform a background sync of your notes (when sync is configured). Any value less than 1 indicates that autosync is disabled. The lowest acceptable positive value is 5. Value is in minutes.</_description>
+ </key>
<child name="wdfs" schema="org.gnome.gnote.sync.wdfs" />
</schema>
<schema id="org.gnome.gnote.sync.wdfs" path="/org/gnome/gnote/sync/wdfs/">
diff --git a/src/preferences.cpp b/src/preferences.cpp
index aabe6e4..6a4bee1 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -56,6 +56,7 @@ namespace gnote {
const char * Preferences::SYNC_LOCAL_PATH = "sync-local-path";
const char * Preferences::SYNC_SELECTED_SERVICE_ADDIN = "sync-selected-service-addin";
const char * Preferences::SYNC_CONFIGURED_CONFLICT_BEHAVIOR = "sync-conflict-behavior";
+ const char * Preferences::SYNC_AUTOSYNC_TIMEOUT = "autosync-timeout";
const char * Preferences::NOTE_RENAME_BEHAVIOR = "note-rename-behavior";
const char * Preferences::USE_STATUS_ICON = "use-status-icon";
diff --git a/src/preferences.hpp b/src/preferences.hpp
index c9e5e0a..c639739 100644
--- a/src/preferences.hpp
+++ b/src/preferences.hpp
@@ -75,6 +75,7 @@ namespace gnote {
static const char *SYNC_LOCAL_PATH;
static const char *SYNC_SELECTED_SERVICE_ADDIN;
static const char *SYNC_CONFIGURED_CONFLICT_BEHAVIOR;
+ static const char *SYNC_AUTOSYNC_TIMEOUT;
static const char *DESKTOP_GNOME_FONT;
static const char *DESKTOP_GNOME_KEY_THEME;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]