aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-11-29 06:39:33 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-11-29 06:39:33 +0000
commit4cc3707180ec49e18d83fd72c4f3eea541eb40ea (patch)
tree86fce2c6efd9e2adb0af876048f463cc53eb922d /libsylph
parente7f6d03d3475bb24aba9c850b04e06cd3027edb9 (diff)
added an option to use external program for printing.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1385 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/prefs_common.c12
-rw-r--r--libsylph/prefs_common.h4
2 files changed, 10 insertions, 6 deletions
diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c
index fd8d8e8f..220e1e69 100644
--- a/libsylph/prefs_common.c
+++ b/libsylph/prefs_common.c
@@ -367,17 +367,19 @@ static PrefParam param[] = {
#endif
P_STRING},
#ifdef G_OS_WIN32
- {"print_command", NULL, &prefs_common.print_cmd, P_STRING},
-#else
- {"print_command", "lpr %s", &prefs_common.print_cmd, P_STRING},
-#endif
-#ifdef G_OS_WIN32
{"ext_editor_command", "notepad '%s'", &prefs_common.ext_editor_cmd,
#else
{"ext_editor_command", "gedit %s", &prefs_common.ext_editor_cmd,
#endif
P_STRING},
+ {"use_print_command", "FALSE", &prefs_common.use_print_cmd, P_BOOL},
+#ifdef G_OS_WIN32
+ {"print_command", NULL, &prefs_common.print_cmd, P_STRING},
+#else
+ {"print_command", "lpr %s", &prefs_common.print_cmd, P_STRING},
+#endif
+
{"use_ext_inc", "FALSE", &prefs_common.use_extinc, P_BOOL},
{"ext_inc_path", DEFAULT_INC_PATH, &prefs_common.extinc_cmd, P_STRING},
{"use_ext_sendmail", "FALSE", &prefs_common.use_extsend, P_BOOL},
diff --git a/libsylph/prefs_common.h b/libsylph/prefs_common.h
index 1517fb53..cbb4d8a4 100644
--- a/libsylph/prefs_common.h
+++ b/libsylph/prefs_common.h
@@ -257,9 +257,11 @@ struct _PrefsCommon
/* External commands */
gchar *uri_cmd;
- gchar *print_cmd;
gchar *ext_editor_cmd;
+ gboolean use_print_cmd;
+ gchar *print_cmd;
+
gboolean use_extinc;
gchar *extinc_cmd;
gboolean use_extsend;