aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-05 07:55:58 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-05 07:55:58 +0000
commitc839eb55e48796e60bb075dbc6d8867c6af371bd (patch)
treec8020a0e1ac44fb76d752844789bc8afb53a1236 /libsylph
parent1f58874e6bfff7b6f9ac3c93b322dd77f1f1aea0 (diff)
added an option to specify startup online mode.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3431 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/prefs_common.c5
-rw-r--r--libsylph/prefs_common.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c
index 2d3184cc..2d8d2917 100644
--- a/libsylph/prefs_common.c
+++ b/libsylph/prefs_common.c
@@ -476,6 +476,9 @@ static PrefParam param[] = {
{"logwindow_line_limit", "1000", &prefs_common.logwin_line_limit,
P_INT},
+ {"online_mode", "TRUE", &prefs_common.online_mode, P_BOOL},
+ {"startup_online_mode", "1", &prefs_common.startup_online_mode, P_INT},
+
/* External commands */
#ifdef G_OS_WIN32
{"uri_open_command", NULL, &prefs_common.uri_cmd,
@@ -545,7 +548,7 @@ void prefs_common_read_config(void)
g_free(path);
- prefs_common.online_mode = TRUE;
+ //prefs_common.online_mode = TRUE;
path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMAND_HISTORY,
NULL);
diff --git a/libsylph/prefs_common.h b/libsylph/prefs_common.h
index e9062eda..95bb0047 100644
--- a/libsylph/prefs_common.h
+++ b/libsylph/prefs_common.h
@@ -351,6 +351,8 @@ struct _PrefsCommon
gint save_file_type;
gint notify_window_period; /* Receive */
+
+ gint startup_online_mode; /* Online */
};
extern PrefsCommon prefs_common;