2001-04-19 14:21:46 +02:00
|
|
|
/*
|
|
|
|
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
2007-01-03 06:42:43 +01:00
|
|
|
* Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
|
2001-04-19 14:21:46 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2007-07-11 18:38:12 +02:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2001-04-19 14:21:46 +02:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2007-07-11 18:38:12 +02:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
2001-04-19 14:21:46 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "defs.h"
|
|
|
|
|
|
|
|
#include <glib.h>
|
2005-02-10 13:06:07 +01:00
|
|
|
#include <glib/gi18n.h>
|
2001-04-19 14:21:46 +02:00
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include <gdk/gdkkeysyms.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
2001-11-07 11:29:45 +01:00
|
|
|
#include <errno.h>
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
#include "main.h"
|
2002-12-25 14:46:41 +01:00
|
|
|
#include "prefs_gtk.h"
|
2001-04-19 14:21:46 +02:00
|
|
|
#include "prefs_common.h"
|
2001-05-06 22:06:56 +02:00
|
|
|
#include "prefs_display_header.h"
|
2001-10-22 10:42:36 +02:00
|
|
|
#include "prefs_summary_column.h"
|
2005-08-05 21:57:42 +02:00
|
|
|
#include "prefs_folder_column.h"
|
2001-04-19 14:21:46 +02:00
|
|
|
#include "mainwindow.h"
|
|
|
|
#include "summaryview.h"
|
2005-08-05 21:57:42 +02:00
|
|
|
#include "folderview.h"
|
2001-04-19 14:21:46 +02:00
|
|
|
#include "messageview.h"
|
|
|
|
#include "manage_window.h"
|
2001-05-06 22:06:56 +02:00
|
|
|
#include "inc.h"
|
2001-04-19 14:21:46 +02:00
|
|
|
#include "menu.h"
|
|
|
|
#include "codeconv.h"
|
|
|
|
#include "utils.h"
|
|
|
|
#include "gtkutils.h"
|
|
|
|
#include "alertpanel.h"
|
|
|
|
#include "folder.h"
|
2003-05-27 09:36:59 +02:00
|
|
|
#include "socket.h"
|
2001-07-31 19:33:35 +02:00
|
|
|
#include "filesel.h"
|
2001-07-31 08:17:48 +02:00
|
|
|
#include "folderview.h"
|
2002-02-11 20:46:04 +01:00
|
|
|
#include "stock_pixmap.h"
|
2004-11-18 07:36:19 +01:00
|
|
|
#include "prefswindow.h"
|
2006-03-06 16:11:01 +01:00
|
|
|
#include "colorlabel.h"
|
2007-11-27 18:13:38 +01:00
|
|
|
#include "addrcustomattr.h"
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2004-12-31 12:27:48 +01:00
|
|
|
enum {
|
|
|
|
DATEFMT_FMT,
|
|
|
|
DATEFMT_TXT,
|
|
|
|
N_DATEFMT_COLUMNS
|
|
|
|
};
|
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
PrefsCommon prefs_common;
|
|
|
|
|
2004-11-18 07:36:19 +01:00
|
|
|
GtkWidget *notebook;
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2006-02-08 22:49:06 +01:00
|
|
|
#ifdef G_OS_WIN32
|
|
|
|
/*
|
|
|
|
* In the Windows version prefs_common contains
|
|
|
|
* - the non-OS-specific settings of the "Common" section and
|
|
|
|
* - the OS-specific settings of the "CommonWin32" section
|
|
|
|
* The OS-specific settings of the "Common" section are not used
|
|
|
|
* but saved in prefs_unix.
|
|
|
|
*/
|
|
|
|
|
|
|
|
# define SPECIFIC_PREFS prefs_unix
|
|
|
|
|
|
|
|
static PrefsCommon prefs_unix;
|
|
|
|
|
|
|
|
static PrefParam param_os_specific[] = {
|
|
|
|
/* Receive */
|
|
|
|
{"ext_inc_path", "",
|
|
|
|
&prefs_common.extinc_cmd, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"newmail_notify_cmd", "",
|
|
|
|
&prefs_common.newmail_notify_cmd, P_STRING, NULL, NULL, NULL},
|
|
|
|
|
|
|
|
/* new fonts */
|
|
|
|
{"widget_font_gtk2", NULL,
|
|
|
|
&prefs_common.widgetfont, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"message_font_gtk2", "Monospace 9",
|
|
|
|
&prefs_common.textfont, P_STRING, NULL, NULL, NULL},
|
2006-09-14 08:16:02 +02:00
|
|
|
{"print_font_gtk2", "Monospace 9",
|
|
|
|
&prefs_common.printfont, P_STRING, NULL, NULL, NULL},
|
2006-02-08 22:49:06 +01:00
|
|
|
{"small_font_gtk2", "Sans 9",
|
|
|
|
&prefs_common.smallfont, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"normal_font_gtk2", "Sans 9",
|
|
|
|
&prefs_common.normalfont, P_STRING, NULL, NULL, NULL},
|
2007-12-18 09:20:55 +01:00
|
|
|
{"bold_font_gtk2", "Sans 9 Bold",
|
|
|
|
&prefs_common.boldfont, P_STRING, NULL, NULL, NULL},
|
2006-02-08 22:49:06 +01:00
|
|
|
/* Message */
|
|
|
|
{"attach_save_directory", NULL,
|
|
|
|
&prefs_common.attach_save_dir, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"attach_load_directory", NULL,
|
|
|
|
&prefs_common.attach_load_dir, P_STRING, NULL, NULL, NULL},
|
|
|
|
|
|
|
|
/* MIME viewer */
|
2006-06-27 14:46:42 +02:00
|
|
|
{"mime_textviewer", NULL,
|
|
|
|
&prefs_common.mime_textviewer, P_STRING, NULL, NULL, NULL},
|
2006-02-08 22:49:06 +01:00
|
|
|
{"mime_open_command", "notepad '%s'",
|
2006-06-27 14:46:42 +02:00
|
|
|
&prefs_common.mime_open_cmd, P_STRING, NULL, NULL, NULL},
|
2006-02-08 22:49:06 +01:00
|
|
|
|
|
|
|
/* Interface */
|
|
|
|
{"pixmap_theme_path", DEFAULT_PIXMAP_THEME,
|
|
|
|
&prefs_common.pixmap_theme_path, P_STRING, NULL, NULL, NULL},
|
|
|
|
|
|
|
|
/* Other */
|
|
|
|
{"uri_open_command", NULL,
|
|
|
|
&prefs_common.uri_cmd, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"print_command", "notepad /p %s",
|
|
|
|
&prefs_common.print_cmd, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"ext_editor_command", "notepad %s",
|
|
|
|
&prefs_common.ext_editor_cmd, P_STRING, NULL, NULL, NULL},
|
|
|
|
|
|
|
|
{NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
#else
|
|
|
|
# define SPECIFIC_PREFS prefs_common
|
|
|
|
#endif
|
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
/*
|
|
|
|
parameter name, default value, pointer to the prefs variable, data type,
|
|
|
|
pointer to the widget pointer,
|
|
|
|
pointer to the function for data setting,
|
|
|
|
pointer to the function for widget setting
|
|
|
|
*/
|
|
|
|
|
|
|
|
static PrefParam param[] = {
|
2007-07-19 18:36:11 +02:00
|
|
|
#ifdef MAEMO
|
|
|
|
{"data_root", "", &prefs_common.data_root, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2001-04-19 14:21:46 +02:00
|
|
|
/* Receive */
|
|
|
|
{"use_ext_inc", "FALSE", &prefs_common.use_extinc, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2006-02-08 22:49:06 +01:00
|
|
|
{"ext_inc_path", DEFAULT_INC_PATH, &SPECIFIC_PREFS.extinc_cmd, P_STRING,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
{"autochk_newmail", "FALSE", &prefs_common.autochk_newmail, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
{"autochk_interval", "10", &prefs_common.autochk_itv, P_INT,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
{"check_on_startup", "FALSE", &prefs_common.chk_on_startup, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2005-11-27 07:11:22 +01:00
|
|
|
{"open_inbox_on_inc", "FALSE", &prefs_common.open_inbox_on_inc,
|
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2001-08-16 13:28:10 +02:00
|
|
|
{"scan_all_after_inc", "FALSE", &prefs_common.scan_all_after_inc,
|
2005-05-31 21:00:21 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2002-03-02 21:05:13 +01:00
|
|
|
{"newmail_notify_manu", "FALSE", &prefs_common.newmail_notify_manu,
|
2005-05-31 21:00:21 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2002-03-02 21:05:13 +01:00
|
|
|
{"newmail_notify_auto", "FALSE", &prefs_common.newmail_notify_auto,
|
2005-05-31 21:00:21 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2006-02-08 22:49:06 +01:00
|
|
|
{"newmail_notify_cmd", "", &SPECIFIC_PREFS.newmail_notify_cmd, P_STRING,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2007-07-25 18:37:48 +02:00
|
|
|
#ifdef MAEMO
|
2007-12-04 22:49:04 +01:00
|
|
|
{"maemo_show_led", "TRUE", &prefs_common.maemo_show_led, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2007-07-25 18:37:48 +02:00
|
|
|
{"maemo_play_sound", "FALSE", &prefs_common.maemo_play_sound, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"maemo_show_banner", "FALSE", &prefs_common.maemo_show_banner, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2007-03-21 18:44:45 +01:00
|
|
|
{"receive_dialog_mode", "2", &prefs_common.recv_dialog_mode, P_ENUM,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2006-09-27 23:05:30 +02:00
|
|
|
{"receivewin_width", "460", &prefs_common.receivewin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"receivewin_height", "-1", &prefs_common.receivewin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2003-04-15 22:48:37 +02:00
|
|
|
{"no_receive_error_panel", "FALSE", &prefs_common.no_recv_err_panel,
|
2005-05-31 21:00:21 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2003-04-15 22:48:37 +02:00
|
|
|
{"close_receive_dialog", "TRUE", &prefs_common.close_recv_dialog,
|
2005-05-31 21:00:21 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2002-03-02 21:05:13 +01:00
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
/* Send */
|
|
|
|
{"save_message", "TRUE", &prefs_common.savemsg, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2005-07-01 19:33:02 +02:00
|
|
|
{"confirm_send_queued_messages", "FALSE", &prefs_common.confirm_send_queued_messages,
|
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2008-01-11 18:39:19 +01:00
|
|
|
#ifndef MAEMO
|
2007-08-18 16:19:10 +02:00
|
|
|
{"send_dialog_mode", "0", &prefs_common.send_dialog_invisible, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2008-01-11 18:39:19 +01:00
|
|
|
#else
|
|
|
|
{"send_dialog_mode", "1", &prefs_common.send_dialog_invisible, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2006-09-27 23:05:30 +02:00
|
|
|
{"sendwin_width", "460", &prefs_common.sendwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"sendwin_height", "-1", &prefs_common.sendwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
{"outgoing_charset", CS_AUTO, &prefs_common.outgoing_charset, P_STRING,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2003-01-16 12:02:43 +01:00
|
|
|
{"encoding_method", "0", &prefs_common.encoding_method, P_ENUM,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2004-02-21 12:01:01 +01:00
|
|
|
{"allow_jisx0201_kana", "FALSE", &prefs_common.allow_jisx0201_kana,
|
|
|
|
P_BOOL, NULL, NULL, NULL},
|
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
/* Compose */
|
2001-09-13 15:38:32 +02:00
|
|
|
{"auto_ext_editor", "FALSE", &prefs_common.auto_exteditor, P_BOOL,
|
2005-05-30 23:07:11 +02:00
|
|
|
NULL, NULL, NULL},
|
2002-03-24 11:30:59 +01:00
|
|
|
{"forward_as_attachment", "FALSE", &prefs_common.forward_as_attachment,
|
2005-05-30 23:07:11 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2002-05-23 10:18:33 +02:00
|
|
|
{"redirect_keep_from", "FALSE",
|
|
|
|
&prefs_common.redirect_keep_from, P_BOOL,
|
2005-05-30 23:07:11 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-12-18 08:36:38 +01:00
|
|
|
{"undo_level", "50", &prefs_common.undolevels, P_INT,
|
2005-05-30 23:07:11 +02:00
|
|
|
NULL, NULL, NULL},
|
2006-11-09 16:15:17 +01:00
|
|
|
{"compose_with_format", "FALSE", &prefs_common.compose_with_format, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"compose_subject_format", "",
|
|
|
|
&prefs_common.compose_subject_format, P_STRING, NULL, NULL, NULL},
|
2008-05-04 17:59:02 +02:00
|
|
|
{"compose_body_format", N_("Hello,\\n"),
|
2006-11-09 16:15:17 +01:00
|
|
|
&prefs_common.compose_body_format, P_STRING, NULL, NULL, NULL},
|
2001-12-16 14:34:13 +01:00
|
|
|
|
2001-12-22 01:30:32 +01:00
|
|
|
{"linewrap_length", "72", &prefs_common.linewrap_len, P_INT,
|
2004-07-12 12:39:50 +02:00
|
|
|
NULL, NULL, NULL},
|
2004-07-18 18:22:33 +02:00
|
|
|
{"linewrap_quotation", "TRUE", &prefs_common.linewrap_quote, P_BOOL,
|
2004-07-12 12:39:50 +02:00
|
|
|
NULL, NULL, NULL},
|
2005-08-19 13:01:47 +02:00
|
|
|
{"linewrap_pastes", "TRUE", &prefs_common.linewrap_pastes, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2004-07-18 18:22:33 +02:00
|
|
|
{"linewrap_auto", "TRUE", &prefs_common.autowrap, P_BOOL,
|
2004-07-12 12:39:50 +02:00
|
|
|
NULL, NULL, NULL},
|
2005-10-10 18:56:26 +02:00
|
|
|
{"autosave", "TRUE", &prefs_common.autosave,
|
2005-05-30 23:07:11 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
|
|
|
{"autosave_length", "50", &prefs_common.autosave_length, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2002-08-28 15:04:15 +02:00
|
|
|
#if USE_ASPELL
|
2003-08-09 03:11:53 +02:00
|
|
|
{"enable_aspell", "TRUE", &prefs_common.enable_aspell, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"aspell_path", ASPELL_PATH, &prefs_common.aspell_path, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"dictionary", "", &prefs_common.dictionary, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
2006-12-21 09:15:55 +01:00
|
|
|
{"alt_dictionary", "", &prefs_common.alt_dictionary, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
2003-08-09 03:11:53 +02:00
|
|
|
{"aspell_sugmode", "1", &prefs_common.aspell_sugmode, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"use_alternate_dict", "FALSE", &prefs_common.use_alternate, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"check_while_typing", "TRUE", &prefs_common.check_while_typing, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2006-02-16 17:01:51 +01:00
|
|
|
{"recheck_when_changing_dict", "TRUE", &prefs_common.recheck_when_changing_dict,
|
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2003-02-19 23:09:32 +01:00
|
|
|
{"misspelled_color", "16711680", &prefs_common.misspelled_col, P_COLOR,
|
2001-12-30 14:05:53 +01:00
|
|
|
NULL, NULL, NULL},
|
2006-12-21 11:52:39 +01:00
|
|
|
{"use_both_dicts", "FALSE", &prefs_common.use_both_dicts, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2001-09-18 18:43:10 +02:00
|
|
|
#endif
|
2001-11-07 11:29:45 +01:00
|
|
|
{"reply_with_quote", "TRUE", &prefs_common.reply_with_quote, P_BOOL,
|
2005-05-30 23:07:11 +02:00
|
|
|
NULL, NULL, NULL},
|
2006-06-24 13:10:06 +02:00
|
|
|
{"compose_dnd_insert_or_attach", "0", &prefs_common.compose_dnd_mode, P_ENUM,
|
2006-06-24 12:45:26 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-11-12 13:47:16 +01:00
|
|
|
|
|
|
|
/* Account autoselection */
|
2001-11-07 11:29:45 +01:00
|
|
|
{"reply_account_autoselect", "TRUE",
|
|
|
|
&prefs_common.reply_account_autosel, P_BOOL,
|
2005-05-30 23:07:11 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-11-12 13:47:16 +01:00
|
|
|
{"forward_account_autoselect", "TRUE",
|
|
|
|
&prefs_common.forward_account_autosel, P_BOOL,
|
2005-05-30 23:07:11 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-11-12 13:47:16 +01:00
|
|
|
{"reedit_account_autoselect", "TRUE",
|
|
|
|
&prefs_common.reedit_account_autosel, P_BOOL,
|
2005-05-30 23:07:11 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-11-07 11:29:45 +01:00
|
|
|
|
2002-10-02 12:24:03 +02:00
|
|
|
{"default_reply_list", "TRUE", &prefs_common.default_reply_list, P_BOOL,
|
2005-05-30 23:07:11 +02:00
|
|
|
NULL, NULL, NULL},
|
2002-10-02 12:24:03 +02:00
|
|
|
|
2007-03-29 19:52:09 +02:00
|
|
|
#ifndef MAEMO
|
2001-04-19 14:21:46 +02:00
|
|
|
{"show_ruler", "TRUE", &prefs_common.show_ruler, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-29 19:52:09 +02:00
|
|
|
#else
|
|
|
|
{"show_ruler", "FALSE", &prefs_common.show_ruler, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2001-11-07 11:29:45 +01:00
|
|
|
/* Quote */
|
|
|
|
{"reply_quote_mark", "> ", &prefs_common.quotemark, P_STRING,
|
2005-05-31 03:08:04 +02:00
|
|
|
NULL, NULL, NULL},
|
2008-05-04 17:59:02 +02:00
|
|
|
{"reply_quote_format", N_("On %d\\n%f wrote:\\n\\n%q"),
|
2005-05-31 03:08:04 +02:00
|
|
|
&prefs_common.quotefmt, P_STRING, NULL, NULL, NULL},
|
2001-11-07 11:29:45 +01:00
|
|
|
|
2001-12-03 11:06:10 +01:00
|
|
|
{"forward_quote_mark", "> ", &prefs_common.fw_quotemark, P_STRING,
|
2005-05-31 03:08:04 +02:00
|
|
|
NULL, NULL, NULL},
|
2008-05-04 17:59:02 +02:00
|
|
|
{"forward_quote_format",
|
|
|
|
N_("\\n\\nBegin forwarded message:\\n\\n"
|
|
|
|
"?d{Date: %d\\n}?f{From: %f\\n}?t{To: %t\\n}?c{Cc: %c\\n}"
|
|
|
|
"?n{Newsgroups: %n\\n}?s{Subject: %s\\n}\\n\\n%M"),
|
|
|
|
&prefs_common.fw_quotefmt, P_STRING,
|
2008-03-29 17:17:20 +01:00
|
|
|
NULL, NULL, NULL},
|
2002-04-28 22:43:24 +02:00
|
|
|
{"quote_chars", ">", &prefs_common.quote_chars, P_STRING,
|
2005-05-31 03:08:04 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-11-07 11:29:45 +01:00
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
/* Display */
|
2003-10-05 12:10:30 +02:00
|
|
|
/* Obsolete fonts. For coexisting with Gtk+-1.2 version */
|
2004-02-08 20:52:32 +01:00
|
|
|
{"widget_font", NULL,
|
|
|
|
&prefs_common.widgetfont_gtk1, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"message_font", "-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*",
|
|
|
|
&prefs_common.textfont_gtk1, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"small_font", "-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*",
|
|
|
|
&prefs_common.smallfont_gtk1, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"bold_font", "-*-helvetica-bold-r-normal--12-*-*-*-*-*-*-*",
|
|
|
|
&prefs_common.boldfont_gtk1, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"normal_font", "-*-helvetica-medium-r-normal--12-*-*-*-*-*-*-*",
|
|
|
|
&prefs_common.normalfont_gtk1, P_STRING, NULL, NULL, NULL},
|
2003-10-05 12:10:30 +02:00
|
|
|
|
|
|
|
/* new fonts */
|
2007-03-21 18:44:45 +01:00
|
|
|
#ifndef MAEMO
|
2004-02-08 20:52:32 +01:00
|
|
|
{"widget_font_gtk2", NULL,
|
2006-02-08 22:49:06 +01:00
|
|
|
&SPECIFIC_PREFS.widgetfont, P_STRING, NULL, NULL, NULL},
|
2005-02-21 17:34:25 +01:00
|
|
|
{"message_font_gtk2", "Monospace 9",
|
2006-02-08 22:49:06 +01:00
|
|
|
&SPECIFIC_PREFS.textfont, P_STRING, NULL, NULL, NULL},
|
2006-06-12 18:06:14 +02:00
|
|
|
{"print_font_gtk2", "Monospace 9",
|
|
|
|
&SPECIFIC_PREFS.printfont, P_STRING, NULL, NULL, NULL},
|
2004-02-08 20:52:32 +01:00
|
|
|
{"small_font_gtk2", "Sans 9",
|
2006-02-08 22:49:06 +01:00
|
|
|
&SPECIFIC_PREFS.smallfont, P_STRING, NULL, NULL, NULL},
|
2005-09-01 09:09:22 +02:00
|
|
|
{"normal_font_gtk2", "Sans 9",
|
2006-02-08 22:49:06 +01:00
|
|
|
&SPECIFIC_PREFS.normalfont, P_STRING, NULL, NULL, NULL},
|
2007-12-18 09:20:55 +01:00
|
|
|
{"bold_font_gtk2", "Sans Bold 9",
|
|
|
|
&SPECIFIC_PREFS.boldfont, P_STRING, NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#else
|
|
|
|
{"widget_font_gtk2", NULL,
|
|
|
|
&SPECIFIC_PREFS.widgetfont, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"message_font_gtk2", "Monospace 8",
|
|
|
|
&SPECIFIC_PREFS.textfont, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"print_font_gtk2", "Monospace 8",
|
|
|
|
&SPECIFIC_PREFS.printfont, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"small_font_gtk2", "Sans 8",
|
|
|
|
&SPECIFIC_PREFS.smallfont, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"normal_font_gtk2", "Sans 8",
|
|
|
|
&SPECIFIC_PREFS.normalfont, P_STRING, NULL, NULL, NULL},
|
2007-12-18 09:20:55 +01:00
|
|
|
{"bold_font_gtk2", "Sans Bold 8",
|
|
|
|
&SPECIFIC_PREFS.boldfont, P_STRING, NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#endif
|
2007-12-18 09:20:55 +01:00
|
|
|
|
|
|
|
{"use_different_print_font", "FALSE", &prefs_common.use_different_print_font, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"derive_from_normal_font", "TRUE", &prefs_common.derive_from_normal_font, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2006-03-06 16:11:01 +01:00
|
|
|
/* custom colors */
|
|
|
|
{"custom_color1", "#ff9900", &prefs_common.custom_colorlabel[0].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
2006-04-12 18:50:31 +02:00
|
|
|
{"custom_colorlabel1", N_("Orange"), &prefs_common.custom_colorlabel[0].label, P_STRING,
|
2006-03-06 16:11:01 +01:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color2", "#ff0000", &prefs_common.custom_colorlabel[1].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
2006-04-12 18:50:31 +02:00
|
|
|
{"custom_colorlabel2", N_("Red"), &prefs_common.custom_colorlabel[1].label, P_STRING,
|
2006-03-06 16:11:01 +01:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color3", "#ff66ff", &prefs_common.custom_colorlabel[2].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
2006-04-12 18:50:31 +02:00
|
|
|
{"custom_colorlabel3", N_("Pink"), &prefs_common.custom_colorlabel[2].label, P_STRING,
|
2006-03-06 16:11:01 +01:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color4", "#00ccff", &prefs_common.custom_colorlabel[3].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
2006-04-12 18:50:31 +02:00
|
|
|
{"custom_colorlabel4", N_("Sky blue"), &prefs_common.custom_colorlabel[3].label, P_STRING,
|
2006-03-06 16:11:01 +01:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color5", "#0000ff", &prefs_common.custom_colorlabel[4].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
2006-04-12 18:50:31 +02:00
|
|
|
{"custom_colorlabel5", N_("Blue"), &prefs_common.custom_colorlabel[4].label, P_STRING,
|
2006-03-06 16:11:01 +01:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color6", "#009900", &prefs_common.custom_colorlabel[5].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
2006-04-12 18:50:31 +02:00
|
|
|
{"custom_colorlabel6", N_("Green"), &prefs_common.custom_colorlabel[5].label, P_STRING,
|
2006-03-06 16:11:01 +01:00
|
|
|
NULL, NULL, NULL},
|
2007-02-28 19:24:49 +01:00
|
|
|
{"custom_color7", "#663333", &prefs_common.custom_colorlabel[6].color, P_COLOR,
|
2006-03-06 16:11:01 +01:00
|
|
|
NULL, NULL, NULL},
|
2006-04-12 18:50:31 +02:00
|
|
|
{"custom_colorlabel7", N_("Brown"), &prefs_common.custom_colorlabel[6].label, P_STRING,
|
2006-03-06 16:11:01 +01:00
|
|
|
NULL, NULL, NULL},
|
2007-02-28 19:24:49 +01:00
|
|
|
{"custom_color8", "#aaaaaa", &prefs_common.custom_colorlabel[7].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_colorlabel8", N_("Grey"), &prefs_common.custom_colorlabel[7].label, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color9", "#c07254", &prefs_common.custom_colorlabel[8].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_colorlabel9", N_("Light brown"), &prefs_common.custom_colorlabel[8].label, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color10", "#c00000", &prefs_common.custom_colorlabel[9].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_colorlabel10", N_("Dark red"), &prefs_common.custom_colorlabel[9].label, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color11", "#cc1074", &prefs_common.custom_colorlabel[10].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_colorlabel11", N_("Dark pink"), &prefs_common.custom_colorlabel[10].label, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color12", "#5094cd", &prefs_common.custom_colorlabel[11].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_colorlabel12", N_("Steel blue"), &prefs_common.custom_colorlabel[11].label, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color13", "#ffd500", &prefs_common.custom_colorlabel[12].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_colorlabel13", N_("Gold"), &prefs_common.custom_colorlabel[12].label, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color14", "#00d800", &prefs_common.custom_colorlabel[13].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_colorlabel14", N_("Bright green"), &prefs_common.custom_colorlabel[13].label, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_color15", "#c060c0", &prefs_common.custom_colorlabel[14].color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"custom_colorlabel15", N_("Magenta"), &prefs_common.custom_colorlabel[14].label, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
2006-03-06 16:11:01 +01:00
|
|
|
|
2005-03-21 10:47:35 +01:00
|
|
|
/* image viewer */
|
|
|
|
{"display_image", "TRUE", &prefs_common.display_img, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"resize_image", "TRUE", &prefs_common.resize_img, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"inline_image", "TRUE", &prefs_common.inline_img, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2007-03-12 11:46:37 +01:00
|
|
|
{"display_folder_unread_num", "0",
|
|
|
|
&prefs_common.display_folder_unread, P_INT,
|
2005-05-31 03:37:20 +02:00
|
|
|
NULL, NULL, NULL},
|
2002-05-10 09:32:09 +02:00
|
|
|
{"newsgroup_abbrev_len", "16",
|
|
|
|
&prefs_common.ng_abbrev_len, P_INT,
|
2005-05-31 03:37:20 +02:00
|
|
|
NULL, NULL, NULL},
|
2002-04-21 13:27:07 +02:00
|
|
|
|
2006-03-12 13:30:48 +01:00
|
|
|
{"translate_header", "FALSE", &prefs_common.trans_hdr, P_BOOL,
|
2005-05-31 03:37:20 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-04-27 22:27:24 +02:00
|
|
|
|
|
|
|
/* Display: Summary View */
|
2005-07-14 12:17:54 +02:00
|
|
|
{"use_address_book", "FALSE", &prefs_common.use_addr_book, P_BOOL,
|
2005-05-31 03:37:20 +02:00
|
|
|
NULL, NULL, NULL},
|
2003-02-04 21:57:27 +01:00
|
|
|
{"thread_by_subject", "TRUE", &prefs_common.thread_by_subject, P_BOOL,
|
2005-05-31 03:37:20 +02:00
|
|
|
NULL, NULL, NULL},
|
2005-12-02 12:43:58 +01:00
|
|
|
{"date_format", N_("%y/%m/%d(%a) %H:%M"), &prefs_common.date_format,
|
2005-05-31 03:37:20 +02:00
|
|
|
P_STRING, NULL, NULL, NULL},
|
2002-11-27 10:26:17 +01:00
|
|
|
|
2001-08-16 13:28:10 +02:00
|
|
|
{"bold_unread", "TRUE", &prefs_common.bold_unread, P_BOOL,
|
2002-11-27 10:26:17 +01:00
|
|
|
NULL, NULL, NULL},
|
2001-04-26 11:36:01 +02:00
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
{"enable_thread", "TRUE", &prefs_common.enable_thread, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#ifndef MAEMO
|
2001-04-19 14:21:46 +02:00
|
|
|
{"toolbar_style", "3", &prefs_common.toolbar_style, P_ENUM,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#else
|
|
|
|
{"toolbar_style", "1", &prefs_common.toolbar_style, P_ENUM,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2005-10-16 15:41:04 +02:00
|
|
|
{"toolbar_detachable", "FALSE", &prefs_common.toolbar_detachable, P_BOOL,
|
2005-08-06 00:54:48 +02:00
|
|
|
NULL, NULL, NULL},
|
2007-07-26 22:30:13 +02:00
|
|
|
{"show_col_headers", "TRUE", &prefs_common.show_col_headers, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2007-07-14 13:02:52 +02:00
|
|
|
#ifndef MAEMO
|
2001-04-19 14:21:46 +02:00
|
|
|
{"show_statusbar", "TRUE", &prefs_common.show_statusbar, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2002-08-20 21:14:30 +02:00
|
|
|
{"show_searchbar", "TRUE", &prefs_common.show_searchbar, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#else
|
2007-07-14 13:02:52 +02:00
|
|
|
{"show_statusbar", "FALSE", &prefs_common.show_statusbar, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
{"show_searchbar", "FALSE", &prefs_common.show_searchbar, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2002-06-22 19:49:39 +02:00
|
|
|
|
2001-10-22 10:42:36 +02:00
|
|
|
{"summary_col_show_mark", "TRUE",
|
|
|
|
&prefs_common.summary_col_visible[S_COL_MARK], P_BOOL, NULL, NULL, NULL},
|
|
|
|
{"summary_col_show_unread", "TRUE",
|
2003-01-26 13:56:56 +01:00
|
|
|
&prefs_common.summary_col_visible[S_COL_STATUS], P_BOOL, NULL, NULL, NULL},
|
2001-10-22 10:42:36 +02:00
|
|
|
{"summary_col_show_subject", "TRUE",
|
|
|
|
&prefs_common.summary_col_visible[S_COL_SUBJECT], P_BOOL, NULL, NULL, NULL},
|
|
|
|
{"summary_col_show_from", "TRUE",
|
|
|
|
&prefs_common.summary_col_visible[S_COL_FROM], P_BOOL, NULL, NULL, NULL},
|
2005-08-05 21:57:42 +02:00
|
|
|
{"summary_col_show_to", "FALSE",
|
|
|
|
&prefs_common.summary_col_visible[S_COL_TO], P_BOOL, NULL, NULL, NULL},
|
2001-10-22 10:42:36 +02:00
|
|
|
{"summary_col_show_date", "TRUE",
|
|
|
|
&prefs_common.summary_col_visible[S_COL_DATE], P_BOOL, NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
{"summary_col_show_mime", "TRUE",
|
|
|
|
&prefs_common.summary_col_visible[S_COL_MIME], P_BOOL, NULL, NULL, NULL},
|
2001-10-22 10:42:36 +02:00
|
|
|
{"summary_col_show_size", "TRUE",
|
|
|
|
&prefs_common.summary_col_visible[S_COL_SIZE], P_BOOL, NULL, NULL, NULL},
|
|
|
|
{"summary_col_show_number", "FALSE",
|
|
|
|
&prefs_common.summary_col_visible[S_COL_NUMBER], P_BOOL, NULL, NULL, NULL},
|
|
|
|
{"summary_col_show_score", "FALSE",
|
|
|
|
&prefs_common.summary_col_visible[S_COL_SCORE], P_BOOL, NULL, NULL, NULL},
|
2001-11-19 21:35:46 +01:00
|
|
|
{"summary_col_show_locked", "FALSE",
|
|
|
|
&prefs_common.summary_col_visible[S_COL_LOCKED], P_BOOL, NULL, NULL, NULL},
|
2007-07-02 18:35:40 +02:00
|
|
|
{"summary_col_show_tags", "FALSE",
|
|
|
|
&prefs_common.summary_col_visible[S_COL_TAGS], P_BOOL, NULL, NULL, NULL},
|
2001-10-22 10:42:36 +02:00
|
|
|
|
|
|
|
{"summary_col_pos_mark", "0",
|
|
|
|
&prefs_common.summary_col_pos[S_COL_MARK], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_pos_unread", "1",
|
2003-01-26 13:56:56 +01:00
|
|
|
&prefs_common.summary_col_pos[S_COL_STATUS], P_INT, NULL, NULL, NULL},
|
2001-10-22 10:42:36 +02:00
|
|
|
{"summary_col_pos_mime", "2",
|
|
|
|
&prefs_common.summary_col_pos[S_COL_MIME], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_pos_subject", "3",
|
|
|
|
&prefs_common.summary_col_pos[S_COL_SUBJECT], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_pos_from", "4",
|
|
|
|
&prefs_common.summary_col_pos[S_COL_FROM], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_pos_date", "5",
|
|
|
|
&prefs_common.summary_col_pos[S_COL_DATE], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_pos_size", "6",
|
|
|
|
&prefs_common.summary_col_pos[S_COL_SIZE], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_pos_number", "7",
|
|
|
|
&prefs_common.summary_col_pos[S_COL_NUMBER], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_pos_score", "8",
|
|
|
|
&prefs_common.summary_col_pos[S_COL_SCORE], P_INT, NULL, NULL, NULL},
|
2001-11-19 21:35:46 +01:00
|
|
|
{"summary_col_pos_locked", "9",
|
|
|
|
&prefs_common.summary_col_pos[S_COL_LOCKED], P_INT, NULL, NULL, NULL},
|
2005-08-05 21:57:42 +02:00
|
|
|
{"summary_col_pos_to", "10",
|
|
|
|
&prefs_common.summary_col_pos[S_COL_TO], P_INT, NULL, NULL, NULL},
|
2007-07-02 18:35:40 +02:00
|
|
|
{"summary_col_pos_tags", "11",
|
|
|
|
&prefs_common.summary_col_pos[S_COL_TAGS], P_INT, NULL, NULL, NULL},
|
2001-10-22 10:42:36 +02:00
|
|
|
|
|
|
|
{"summary_col_size_mark", "10",
|
|
|
|
&prefs_common.summary_col_size[S_COL_MARK], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_size_unread", "13",
|
2003-01-26 13:56:56 +01:00
|
|
|
&prefs_common.summary_col_size[S_COL_STATUS], P_INT, NULL, NULL, NULL},
|
2001-10-22 10:42:36 +02:00
|
|
|
{"summary_col_size_mime", "10",
|
|
|
|
&prefs_common.summary_col_size[S_COL_MIME], P_INT, NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#ifndef MAEMO
|
2001-10-22 10:42:36 +02:00
|
|
|
{"summary_col_size_subject", "200",
|
|
|
|
&prefs_common.summary_col_size[S_COL_SUBJECT], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_size_from", "120",
|
|
|
|
&prefs_common.summary_col_size[S_COL_FROM], P_INT, NULL, NULL, NULL},
|
2005-08-05 21:57:42 +02:00
|
|
|
{"summary_col_size_to", "120",
|
|
|
|
&prefs_common.summary_col_size[S_COL_TO], P_INT, NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#else
|
|
|
|
{"summary_col_size_subject", "300",
|
|
|
|
&prefs_common.summary_col_size[S_COL_SUBJECT], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_size_from", "150",
|
|
|
|
&prefs_common.summary_col_size[S_COL_FROM], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_size_to", "150",
|
|
|
|
&prefs_common.summary_col_size[S_COL_TO], P_INT, NULL, NULL, NULL},
|
|
|
|
|
|
|
|
#endif
|
2001-10-22 10:42:36 +02:00
|
|
|
{"summary_col_size_date", "118",
|
|
|
|
&prefs_common.summary_col_size[S_COL_DATE], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_size_size", "45",
|
|
|
|
&prefs_common.summary_col_size[S_COL_SIZE], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_size_number", "40",
|
|
|
|
&prefs_common.summary_col_size[S_COL_NUMBER], P_INT, NULL, NULL, NULL},
|
|
|
|
{"summary_col_size_score", "40",
|
|
|
|
&prefs_common.summary_col_size[S_COL_SCORE], P_INT, NULL, NULL, NULL},
|
2001-11-19 21:35:46 +01:00
|
|
|
{"summary_col_size_locked", "13",
|
|
|
|
&prefs_common.summary_col_size[S_COL_LOCKED], P_INT, NULL, NULL, NULL},
|
2007-07-02 18:35:40 +02:00
|
|
|
{"summary_col_size_tags", "150",
|
|
|
|
&prefs_common.summary_col_size[S_COL_TAGS], P_INT, NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
/* Widget size */
|
2003-08-09 08:26:27 +02:00
|
|
|
{"folderwin_x", "16", &prefs_common.folderwin_x, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"folderwin_y", "16", &prefs_common.folderwin_y, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2005-10-16 15:41:04 +02:00
|
|
|
{"folderview_width", "270", &prefs_common.folderview_width, P_INT,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
2004-10-01 10:57:07 +02:00
|
|
|
{"folderview_height", "450", &prefs_common.folderview_height, P_INT,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
2003-08-21 10:45:43 +02:00
|
|
|
{"folderview_visible", "TRUE", &prefs_common.folderview_visible, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2003-08-09 08:26:27 +02:00
|
|
|
|
2005-08-05 21:57:42 +02:00
|
|
|
{"folder_col_show_folder", "TRUE",
|
|
|
|
&prefs_common.folder_col_visible[F_COL_FOLDER], P_BOOL, NULL, NULL, NULL},
|
|
|
|
{"folder_col_show_new", "TRUE",
|
|
|
|
&prefs_common.folder_col_visible[F_COL_NEW], P_BOOL, NULL, NULL, NULL},
|
|
|
|
{"folder_col_show_unread", "TRUE",
|
|
|
|
&prefs_common.folder_col_visible[F_COL_UNREAD], P_BOOL, NULL, NULL, NULL},
|
|
|
|
{"folder_col_show_total", "TRUE",
|
|
|
|
&prefs_common.folder_col_visible[F_COL_TOTAL], P_BOOL, NULL, NULL, NULL},
|
|
|
|
|
|
|
|
{"folder_col_pos_folder", "0",
|
|
|
|
&prefs_common.folder_col_pos[F_COL_FOLDER], P_INT, NULL, NULL, NULL},
|
|
|
|
{"folder_col_pos_new", "1",
|
|
|
|
&prefs_common.folder_col_pos[F_COL_NEW], P_INT, NULL, NULL, NULL},
|
|
|
|
{"folder_col_pos_unread", "2",
|
|
|
|
&prefs_common.folder_col_pos[F_COL_UNREAD], P_INT, NULL, NULL, NULL},
|
|
|
|
{"folder_col_pos_total", "3",
|
|
|
|
&prefs_common.folder_col_pos[F_COL_TOTAL], P_INT, NULL, NULL, NULL},
|
|
|
|
|
2007-03-21 18:44:45 +01:00
|
|
|
#ifndef MAEMO
|
2005-10-16 15:41:04 +02:00
|
|
|
{"folder_col_size_folder", "120",
|
2005-08-05 21:57:42 +02:00
|
|
|
&prefs_common.folder_col_size[F_COL_FOLDER], P_INT, NULL, NULL, NULL},
|
|
|
|
{"folder_col_size_new", "32",
|
|
|
|
&prefs_common.folder_col_size[F_COL_NEW], P_INT, NULL, NULL, NULL},
|
|
|
|
{"folder_col_size_unread", "32",
|
|
|
|
&prefs_common.folder_col_size[F_COL_UNREAD], P_INT, NULL, NULL, NULL},
|
|
|
|
{"folder_col_size_total", "32",
|
|
|
|
&prefs_common.folder_col_size[F_COL_TOTAL], P_INT, NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#else
|
|
|
|
{"folder_col_size_folder", "400",
|
|
|
|
&prefs_common.folder_col_size[F_COL_FOLDER], P_INT, NULL, NULL, NULL},
|
|
|
|
{"folder_col_size_new", "32",
|
|
|
|
&prefs_common.folder_col_size[F_COL_NEW], P_INT, NULL, NULL, NULL},
|
|
|
|
{"folder_col_size_unread", "32",
|
|
|
|
&prefs_common.folder_col_size[F_COL_UNREAD], P_INT, NULL, NULL, NULL},
|
|
|
|
{"folder_col_size_total", "32",
|
|
|
|
&prefs_common.folder_col_size[F_COL_TOTAL], P_INT, NULL, NULL, NULL},
|
|
|
|
#endif
|
2005-10-16 15:41:04 +02:00
|
|
|
{"summaryview_width", "500", &prefs_common.summaryview_width, P_INT,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
2005-10-16 15:41:04 +02:00
|
|
|
{"summaryview_height", "244", &prefs_common.summaryview_height, P_INT,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-10-22 10:42:36 +02:00
|
|
|
|
2003-08-09 08:26:27 +02:00
|
|
|
{"main_messagewin_x", "256", &prefs_common.main_msgwin_x, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"main_messagewin_y", "210", &prefs_common.main_msgwin_y, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2005-10-16 15:41:04 +02:00
|
|
|
{"messageview_width", "500", &prefs_common.msgview_width, P_INT,
|
2003-08-09 08:26:27 +02:00
|
|
|
NULL, NULL, NULL},
|
2005-10-16 15:41:04 +02:00
|
|
|
{"messageview_height", "213", &prefs_common.msgview_height, P_INT,
|
2003-08-09 08:26:27 +02:00
|
|
|
NULL, NULL, NULL},
|
2003-08-21 10:45:43 +02:00
|
|
|
{"messageview_visible", "TRUE", &prefs_common.msgview_visible, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2003-08-09 08:26:27 +02:00
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
{"mainview_x", "64", &prefs_common.mainview_x, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"mainview_y", "64", &prefs_common.mainview_y, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2005-10-16 15:41:04 +02:00
|
|
|
{"mainview_width", "500", &prefs_common.mainview_width, P_INT,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
2005-10-16 15:41:04 +02:00
|
|
|
{"mainview_height", "400", &prefs_common.mainview_height, P_INT,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"mainwin_x", "64", &prefs_common.mainwin_x, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"mainwin_y", "64", &prefs_common.mainwin_y, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2007-12-27 20:26:13 +01:00
|
|
|
{"mainwin_maximised", "FALSE", &prefs_common.mainwin_maximised, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#ifndef MAEMO
|
2001-04-19 14:21:46 +02:00
|
|
|
{"mainwin_width", "800", &prefs_common.mainwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"mainwin_height", "600", &prefs_common.mainwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"messagewin_width", "600", &prefs_common.msgwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"messagewin_height", "540", &prefs_common.msgwin_height, P_INT,
|
2003-02-18 06:42:13 +01:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"sourcewin_width", "600", &prefs_common.sourcewin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"sourcewin_height", "500", &prefs_common.sourcewin_height, P_INT,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"compose_width", "600", &prefs_common.compose_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"compose_height", "560", &prefs_common.compose_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#else
|
|
|
|
{"mainwin_width", "700", &prefs_common.mainwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"mainwin_height", "470", &prefs_common.mainwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"messagewin_width", "700", &prefs_common.msgwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"messagewin_height", "470", &prefs_common.msgwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"sourcewin_width", "700", &prefs_common.sourcewin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"sourcewin_height", "470", &prefs_common.sourcewin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"compose_width", "700", &prefs_common.compose_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"compose_height", "470", &prefs_common.compose_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2004-02-21 12:01:01 +01:00
|
|
|
{"compose_x", "0", &prefs_common.compose_x, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"compose_y", "0", &prefs_common.compose_y, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
/* Message */
|
|
|
|
{"enable_color", "TRUE", &prefs_common.enable_color, P_BOOL,
|
2004-07-12 12:39:50 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2003-02-19 23:09:32 +01:00
|
|
|
{"quote_level1_color", "179", &prefs_common.quote_level1_col, P_COLOR,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
2003-02-19 23:09:32 +01:00
|
|
|
{"quote_level2_color", "179", &prefs_common.quote_level2_col, P_COLOR,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
2003-02-19 23:09:32 +01:00
|
|
|
{"quote_level3_color", "179", &prefs_common.quote_level3_col, P_COLOR,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
2006-04-10 21:16:31 +02:00
|
|
|
{"enable_bgcolor", "FALSE", &prefs_common.enable_bgcolor, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"quote_level1_bgcolor", "13421772", &prefs_common.quote_level1_bgcol, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
2006-04-11 18:30:23 +02:00
|
|
|
{"quote_level2_bgcolor", "13948116", &prefs_common.quote_level2_bgcol, P_COLOR,
|
2006-04-10 21:16:31 +02:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"quote_level3_bgcolor", "14540253", &prefs_common.quote_level3_bgcol, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
2003-02-19 23:09:32 +01:00
|
|
|
{"uri_color", "32512", &prefs_common.uri_col, P_COLOR,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
2007-08-06 23:19:29 +02:00
|
|
|
{"emphasis_color", "207", &prefs_common.emphasis_col, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
2003-02-19 23:09:32 +01:00
|
|
|
{"target_folder_color", "14294218", &prefs_common.tgt_folder_col, P_COLOR,
|
2001-07-31 08:17:48 +02:00
|
|
|
NULL, NULL, NULL},
|
2003-02-19 23:09:32 +01:00
|
|
|
{"signature_color", "7960953", &prefs_common.signature_col, P_COLOR,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"recycle_quote_colors", "FALSE", &prefs_common.recycle_quote_colors,
|
|
|
|
P_BOOL, NULL, NULL, NULL},
|
|
|
|
|
2005-10-10 18:56:26 +02:00
|
|
|
{"display_header_pane", "FALSE", &prefs_common.display_header_pane,
|
2005-05-31 21:00:21 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
{"display_header", "TRUE", &prefs_common.display_header, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2005-10-20 19:49:21 +02:00
|
|
|
{"display_xface", "TRUE", &prefs_common.display_xface,
|
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2005-03-30 14:01:26 +02:00
|
|
|
{"render_html", "TRUE", &prefs_common.render_html, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2006-02-17 18:43:25 +01:00
|
|
|
{"invoke_plugin_on_html", "FALSE", &prefs_common.invoke_plugin_on_html, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
{"line_space", "2", &prefs_common.line_space, P_INT,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2006-06-21 10:48:25 +02:00
|
|
|
{"never_send_retrcpt", "FALSE", &prefs_common.never_send_retrcpt, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
{"enable_smooth_scroll", "FALSE",
|
|
|
|
&prefs_common.enable_smooth_scroll, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
{"scroll_step", "1", &prefs_common.scroll_step, P_INT,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
{"scroll_half_page", "FALSE", &prefs_common.scroll_halfpage, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2006-10-12 19:20:05 +02:00
|
|
|
{"respect_flowed_format", "FALSE", &prefs_common.respect_flowed_format, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2001-05-06 22:06:56 +02:00
|
|
|
{"show_other_header", "FALSE", &prefs_common.show_other_header, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2003-02-22 13:09:38 +01:00
|
|
|
{"attach_desc", "TRUE", &prefs_common.attach_desc, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2004-05-10 12:22:28 +02:00
|
|
|
{"attach_save_directory", NULL,
|
2006-02-08 22:49:06 +01:00
|
|
|
&SPECIFIC_PREFS.attach_save_dir, P_STRING, NULL, NULL, NULL},
|
2005-12-08 10:50:04 +01:00
|
|
|
{"attach_load_directory", NULL,
|
2006-02-08 22:49:06 +01:00
|
|
|
&SPECIFIC_PREFS.attach_load_dir, P_STRING, NULL, NULL, NULL},
|
2003-02-22 13:09:38 +01:00
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
/* MIME viewer */
|
2006-06-27 14:46:42 +02:00
|
|
|
{"mime_textviewer", NULL,
|
|
|
|
&SPECIFIC_PREFS.mime_textviewer, P_STRING, NULL, NULL, NULL},
|
2001-11-07 11:29:45 +01:00
|
|
|
{"mime_open_command", "gedit '%s'",
|
2006-06-27 14:46:42 +02:00
|
|
|
&SPECIFIC_PREFS.mime_open_cmd, P_STRING, NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
|
|
|
|
/* Interface */
|
2007-03-21 18:44:45 +01:00
|
|
|
#ifndef MAEMO
|
2007-01-19 19:16:09 +01:00
|
|
|
{"layout_mode", "0", &prefs_common.layout_mode, P_INT,
|
2001-04-19 14:21:46 +02:00
|
|
|
NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#else
|
|
|
|
{"layout_mode", "5", &prefs_common.layout_mode, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2001-08-22 12:58:38 +02:00
|
|
|
/* {"emulate_emacs", "FALSE", &prefs_common.emulate_emacs, P_BOOL,
|
|
|
|
NULL, NULL, NULL}, */
|
2003-05-09 10:21:45 +02:00
|
|
|
{"always_show_message_when_selected", "FALSE",
|
|
|
|
&prefs_common.always_show_msg,
|
2005-05-31 21:00:21 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2007-06-12 18:48:32 +02:00
|
|
|
{"select_on_entry", "3", &prefs_common.select_on_entry,
|
2005-08-05 11:12:51 +02:00
|
|
|
P_ENUM, NULL, NULL, NULL},
|
2007-11-19 18:23:20 +01:00
|
|
|
{"show_tooltips", "TRUE", &prefs_common.show_tooltips,
|
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2007-06-12 18:48:32 +02:00
|
|
|
|
2007-11-23 11:15:37 +01:00
|
|
|
/* do it SUMMARY_OPEN_ACTIONS-1 times */
|
2007-06-12 18:48:32 +02:00
|
|
|
{"summary_select_prio1", "0", &prefs_common.summary_select_prio[0], P_ENUM,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"summary_select_prio2", "0", &prefs_common.summary_select_prio[1], P_ENUM,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"summary_select_prio3", "0", &prefs_common.summary_select_prio[2], P_ENUM,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"summary_select_prio4", "0", &prefs_common.summary_select_prio[3], P_ENUM,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"summary_select_prio5", "0", &prefs_common.summary_select_prio[4], P_ENUM,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"summary_select_prio6", "0", &prefs_common.summary_select_prio[5], P_ENUM,
|
|
|
|
NULL, NULL, NULL},
|
2007-11-23 11:15:37 +01:00
|
|
|
{"summary_select_prio7", "0", &prefs_common.summary_select_prio[6], P_ENUM,
|
|
|
|
NULL, NULL, NULL},
|
2007-06-12 18:48:32 +02:00
|
|
|
|
2002-09-06 09:38:22 +02:00
|
|
|
{"mark_as_read_on_new_window", "FALSE",
|
|
|
|
&prefs_common.mark_as_read_on_new_window,
|
2005-05-31 21:00:21 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2004-09-03 11:45:51 +02:00
|
|
|
{"mark_as_read_delay", "0",
|
|
|
|
&prefs_common.mark_as_read_delay, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
{"immediate_execution", "TRUE", &prefs_common.immediate_exec, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2005-10-10 18:56:26 +02:00
|
|
|
{"nextunreadmsg_dialog", "1", &prefs_common.next_unread_msg_dialog, P_ENUM,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-08-22 12:58:38 +02:00
|
|
|
|
2002-02-11 20:46:04 +01:00
|
|
|
{"pixmap_theme_path", DEFAULT_PIXMAP_THEME,
|
2006-02-08 22:49:06 +01:00
|
|
|
&SPECIFIC_PREFS.pixmap_theme_path, P_STRING,
|
2004-02-21 12:01:01 +01:00
|
|
|
NULL, NULL, NULL},
|
2003-07-18 00:49:51 +02:00
|
|
|
|
2005-10-06 21:29:38 +02:00
|
|
|
{"ask_mark_all_read", "TRUE", &prefs_common.ask_mark_all_read, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2006-08-03 10:37:30 +02:00
|
|
|
{"ask_apply_per_account_filtering_rules", "TRUE", &prefs_common.ask_apply_per_account_filtering_rules, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"apply_per_account_filtering_rules", "0", &prefs_common.apply_per_account_filtering_rules, P_ENUM,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2006-12-01 15:24:50 +01:00
|
|
|
/* Addressbook */
|
|
|
|
{"addressbook_use_editaddress_dialog", "TRUE", &prefs_common.addressbook_use_editaddress_dialog,
|
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2006-12-28 10:53:20 +01:00
|
|
|
{"addressbook_hpaned_pos", "-1", &prefs_common.addressbook_hpaned_pos,
|
|
|
|
P_INT, NULL, NULL, NULL},
|
|
|
|
{"addressbook_vpaned_pos", "-1", &prefs_common.addressbook_vpaned_pos,
|
|
|
|
P_INT, NULL, NULL, NULL},
|
2006-12-01 15:24:50 +01:00
|
|
|
|
2002-01-28 13:46:49 +01:00
|
|
|
/* Other */
|
2002-12-20 08:33:23 +01:00
|
|
|
{"uri_open_command", DEFAULT_BROWSER_CMD,
|
2006-02-08 22:49:06 +01:00
|
|
|
&SPECIFIC_PREFS.uri_cmd, P_STRING, NULL, NULL, NULL},
|
|
|
|
{"print_command", "lpr %s",
|
|
|
|
&SPECIFIC_PREFS.print_cmd, P_STRING, NULL, NULL, NULL},
|
2006-02-01 18:52:48 +01:00
|
|
|
{"ext_editor_command", DEFAULT_EDITOR_CMD,
|
2006-02-08 22:49:06 +01:00
|
|
|
&SPECIFIC_PREFS.ext_editor_cmd, P_STRING, NULL, NULL, NULL},
|
2007-11-22 09:58:38 +01:00
|
|
|
{"cmds_use_system_default", "FALSE",
|
2007-11-21 19:58:18 +01:00
|
|
|
&prefs_common.cmds_use_system_default, P_BOOL, NULL, NULL, NULL},
|
2002-11-27 10:26:17 +01:00
|
|
|
{"add_address_by_click", "FALSE", &prefs_common.add_address_by_click,
|
2005-05-31 21:00:21 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2004-06-25 10:05:09 +02:00
|
|
|
{"confirm_on_exit", "FALSE", &prefs_common.confirm_on_exit, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
{"clean_trash_on_exit", "FALSE", &prefs_common.clean_on_exit, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-04-19 14:21:46 +02:00
|
|
|
{"ask_on_cleaning", "TRUE", &prefs_common.ask_on_clean, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-04-21 16:04:25 +02:00
|
|
|
{"warn_queued_on_exit", "TRUE", &prefs_common.warn_queued_on_exit,
|
2005-05-31 21:00:21 +02:00
|
|
|
P_BOOL, NULL, NULL, NULL},
|
2002-04-21 14:11:43 +02:00
|
|
|
{"work_offline", "FALSE", &prefs_common.work_offline, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2002-12-11 11:16:39 +01:00
|
|
|
{"summary_quicksearch_type", "0", &prefs_common.summary_quicksearch_type, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#ifndef MAEMO
|
2005-01-21 14:36:24 +01:00
|
|
|
{"summary_quicksearch_recurse", "1", &prefs_common.summary_quicksearch_recurse, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-21 18:44:45 +01:00
|
|
|
#else
|
|
|
|
{"summary_quicksearch_recurse", "0", &prefs_common.summary_quicksearch_recurse, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2001-04-19 14:21:46 +02:00
|
|
|
|
2008-04-22 08:37:00 +02:00
|
|
|
#if defined(__OpenBSD__)
|
2008-04-24 07:39:42 +02:00
|
|
|
{"io_timeout_secs", "80", &prefs_common.io_timeout_secs,
|
2008-04-22 08:37:00 +02:00
|
|
|
P_INT, NULL, NULL, NULL},
|
|
|
|
#else
|
2003-05-27 09:36:59 +02:00
|
|
|
{"io_timeout_secs", "60", &prefs_common.io_timeout_secs,
|
2005-05-31 21:00:21 +02:00
|
|
|
P_INT, NULL, NULL, NULL},
|
2008-04-22 08:37:00 +02:00
|
|
|
#endif
|
2002-09-25 23:19:01 +02:00
|
|
|
{"hide_score", "-9999", &prefs_common.kill_score, P_INT,
|
2001-06-01 13:06:33 +02:00
|
|
|
NULL, NULL, NULL},
|
2001-06-04 12:14:21 +02:00
|
|
|
{"important_score", "1", &prefs_common.important_score, P_INT,
|
2001-06-01 13:06:33 +02:00
|
|
|
NULL, NULL, NULL},
|
2007-03-21 16:00:46 +01:00
|
|
|
|
2007-07-17 15:21:50 +02:00
|
|
|
{"clip_log", "TRUE", &prefs_common.cliplog, P_BOOL,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2003-05-09 10:21:45 +02:00
|
|
|
{"log_length", "500", &prefs_common.loglength, P_INT,
|
2005-05-31 21:00:21 +02:00
|
|
|
NULL, NULL, NULL},
|
2007-07-17 15:21:50 +02:00
|
|
|
#ifndef MAEMO
|
|
|
|
{"enable_log_standard", "TRUE", &prefs_common.enable_log_standard, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_log_warning", "TRUE", &prefs_common.enable_log_warning, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_log_error", "TRUE", &prefs_common.enable_log_error, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_log_status", "TRUE", &prefs_common.enable_log_status, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#else
|
|
|
|
{"enable_log_standard", "FALSE", &prefs_common.enable_log_standard, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_log_warning", "FALSE", &prefs_common.enable_log_warning, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_log_error", "FALSE", &prefs_common.enable_log_error, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_log_status", "FALSE", &prefs_common.enable_log_status, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2006-05-19 13:11:20 +02:00
|
|
|
{"log_msg_color", "#00af00", &prefs_common.log_msg_color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"log_warn_color", "#af0000", &prefs_common.log_warn_color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"log_error_color", "#af0000", &prefs_common.log_error_color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"log_in_color", "#000000", &prefs_common.log_in_color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"log_out_color", "#0000ef", &prefs_common.log_out_color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-21 16:00:46 +01:00
|
|
|
{"log_status_ok_color", "#00af00", &prefs_common.log_status_ok_color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"log_status_nok_color", "#0000af", &prefs_common.log_status_nok_color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"log_status_skip_color", "#aa00aa", &prefs_common.log_status_skip_color, P_COLOR,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
|
|
|
{"enable_filtering_debug", "FALSE", &prefs_common.enable_filtering_debug, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"filtering_debug_level", "1", &prefs_common.filtering_debug_level, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_filtering_debug_inc", "TRUE", &prefs_common.enable_filtering_debug_inc, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_filtering_debug_manual", "TRUE", &prefs_common.enable_filtering_debug_manual, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_filtering_debug_folder_proc", "FALSE", &prefs_common.enable_filtering_debug_folder_proc, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_filtering_debug_pre_proc", "FALSE", &prefs_common.enable_filtering_debug_pre_proc, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_filtering_debug_post_proc", "FALSE", &prefs_common.enable_filtering_debug_post_proc, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"filtering_debug_clip_log", "TRUE", &prefs_common.filtering_debug_cliplog, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"filtering_debug_log_length", "500", &prefs_common.filtering_debug_loglength, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2001-06-01 13:06:33 +02:00
|
|
|
|
2007-01-17 23:21:39 +01:00
|
|
|
{"gtk_can_change_accels", "TRUE", &prefs_common.gtk_can_change_accels, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2003-02-19 22:46:30 +01:00
|
|
|
{"color_new", "179", &prefs_common.color_new, P_COLOR,
|
2003-02-18 06:55:38 +01:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2005-10-14 15:43:17 +02:00
|
|
|
/* Some windows' sizes */
|
2005-04-29 19:10:34 +02:00
|
|
|
{"filteringwin_width", "500", &prefs_common.filteringwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"filteringwin_height", "-1", &prefs_common.filteringwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2005-09-22 23:08:02 +02:00
|
|
|
|
2005-10-14 15:43:17 +02:00
|
|
|
{"filteringactionwin_width", "490", &prefs_common.filteringactionwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"filteringactionwin_height", "-1", &prefs_common.filteringactionwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
|
|
|
{"matcherwin_width", "520", &prefs_common.matcherwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"matcherwin_height", "-1", &prefs_common.matcherwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2007-05-03 14:44:01 +02:00
|
|
|
{"templateswin_width", "480", &prefs_common.templateswin_width, P_INT,
|
2005-10-14 15:43:17 +02:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"templateswin_height", "-1", &prefs_common.templateswin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
|
|
|
{"actionswin_width", "486", &prefs_common.actionswin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"actionswin_height", "-1", &prefs_common.actionswin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2007-07-02 18:35:40 +02:00
|
|
|
{"tagswin_width", "486", &prefs_common.tagswin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"tagswin_height", "-1", &prefs_common.tagswin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2005-10-16 14:23:20 +02:00
|
|
|
{"addressbookwin_width", "520", &prefs_common.addressbookwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"addressbookwin_height", "-1", &prefs_common.addressbookwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
|
|
|
{"addressbookeditpersonwin_width", "640", &prefs_common.addressbookeditpersonwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2006-12-01 15:24:50 +01:00
|
|
|
{"addressbookeditpersonwin_height", "320", &prefs_common.addressbookeditpersonwin_height, P_INT,
|
2005-10-16 14:23:20 +02:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2006-09-27 23:05:30 +02:00
|
|
|
{"addressbookeditgroupwin_width", "580", &prefs_common.addressbookeditgroupwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"addressbookeditgroupwin_height", "340", &prefs_common.addressbookeditgroupwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2007-01-17 12:53:59 +01:00
|
|
|
{"pluginswin_width", "-1", &prefs_common.pluginswin_width, P_INT,
|
2005-10-17 17:00:48 +02:00
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"pluginswin_height", "-1", &prefs_common.pluginswin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
|
|
|
{"prefswin_width", "600", &prefs_common.prefswin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"prefswin_height", "-1", &prefs_common.prefswin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
|
|
|
{"folderitemwin_width", "500", &prefs_common.folderitemwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"folderitemwin_height", "-1", &prefs_common.folderitemwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2007-03-31 16:38:12 +02:00
|
|
|
{"zero_replacement_char", "0", &prefs_common.zero_replacement, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2005-10-17 17:00:48 +02:00
|
|
|
{"editaccountwin_width", "500", &prefs_common.editaccountwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"editaccountwin_height", "-1", &prefs_common.editaccountwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
|
|
|
{"accountswin_width", "500", &prefs_common.accountswin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"accountswin_height", "-1", &prefs_common.accountswin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
|
|
|
{"logwin_width", "520", &prefs_common.logwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"logwin_height", "-1", &prefs_common.logwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2007-03-21 16:00:46 +01:00
|
|
|
{"filtering_debugwin_width", "600", &prefs_common.filtering_debugwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"filtering_debugwin_height", "-1", &prefs_common.filtering_debugwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2006-03-09 11:36:18 +01:00
|
|
|
{"folderselwin_width", "300", &prefs_common.folderselwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"folderselwin_height", "-1", &prefs_common.folderselwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
|
|
|
{"addressaddwin_width", "300", &prefs_common.addressaddwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"addressaddwin_height", "-1", &prefs_common.addressaddwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2006-07-31 14:03:02 +02:00
|
|
|
{"addressbook_folderselwin_width", "300", &prefs_common.addressbook_folderselwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"addressbook_folderselwin_height", "-1", &prefs_common.addressbook_folderselwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
|
2005-09-22 23:08:02 +02:00
|
|
|
/* Hidden */
|
2005-05-24 03:09:19 +02:00
|
|
|
{"warn_dnd", "1", &prefs_common.warn_dnd, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2005-09-22 23:08:02 +02:00
|
|
|
{"utf8_instead_of_locale_for_broken_mail", "0",
|
|
|
|
&prefs_common.broken_are_utf8, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"enable_swap_from", "FALSE", &prefs_common.swap_from, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2006-09-06 11:14:40 +02:00
|
|
|
{"use_stripes_everywhere", "TRUE", &prefs_common.use_stripes_everywhere, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"use_stripes_in_summaries", "TRUE", &prefs_common.use_stripes_in_summaries, P_BOOL,
|
2005-09-22 23:08:02 +02:00
|
|
|
NULL, NULL, NULL},
|
2006-09-14 08:16:02 +02:00
|
|
|
{"stripes_color_offset", "4000", &prefs_common.stripes_color_offset, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2006-08-31 22:55:26 +02:00
|
|
|
{"enable_dotted_lines", "FALSE", &prefs_common.enable_dotted_lines, P_BOOL,
|
2006-08-31 19:27:03 +02:00
|
|
|
NULL, NULL, NULL},
|
2005-09-22 23:08:02 +02:00
|
|
|
{"enable_hscrollbar", "TRUE", &prefs_common.enable_hscrollbar, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"folderview_vscrollbar_policy", "0",
|
|
|
|
&prefs_common.folderview_vscrollbar_policy, P_ENUM,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"textview_cursor_visible", "FALSE",
|
|
|
|
&prefs_common.textview_cursor_visible, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"hover_timeout", "500", &prefs_common.hover_timeout, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-23 10:23:44 +01:00
|
|
|
#ifndef MAEMO
|
2005-09-22 23:08:02 +02:00
|
|
|
{"cache_max_mem_usage", "4096", &prefs_common.cache_max_mem_usage, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"cache_min_keep_time", "15", &prefs_common.cache_min_keep_time, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2007-03-23 10:23:44 +01:00
|
|
|
#else
|
|
|
|
{"cache_max_mem_usage", "4096", &prefs_common.cache_max_mem_usage, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"cache_min_keep_time", "0", &prefs_common.cache_min_keep_time, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2005-09-22 23:08:02 +02:00
|
|
|
{"thread_by_subject_max_age", "10", &prefs_common.thread_by_subject_max_age,
|
|
|
|
P_INT, NULL, NULL, NULL },
|
2007-05-15 20:45:52 +02:00
|
|
|
{"last_opened_folder", "", &prefs_common.last_opened_folder,
|
|
|
|
P_STRING, NULL, NULL, NULL },
|
|
|
|
{"goto_last_folder_on_startup", "FALSE", &prefs_common.goto_last_folder_on_startup,
|
|
|
|
P_BOOL, NULL, NULL, NULL },
|
2005-09-22 23:08:02 +02:00
|
|
|
{"summary_quicksearch_sticky", "1", &prefs_common.summary_quicksearch_sticky, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2006-10-18 19:00:00 +02:00
|
|
|
{"summary_quicksearch_dynamic", "0", &prefs_common.summary_quicksearch_dynamic, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2007-05-10 18:39:25 +02:00
|
|
|
{"summary_quicksearch_autorun", "0", &prefs_common.summary_quicksearch_autorun, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2005-09-22 23:08:02 +02:00
|
|
|
{"statusbar_update_step", "10", &prefs_common.statusbar_update_step, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2006-04-07 18:20:05 +02:00
|
|
|
{"compose_no_markup", "FALSE", &prefs_common.compose_no_markup, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2006-06-01 19:14:34 +02:00
|
|
|
{"skip_ssl_cert_check", "FALSE", &prefs_common.skip_ssl_cert_check, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2006-06-12 18:06:14 +02:00
|
|
|
{"live_dangerously", "FALSE", &prefs_common.live_dangerously, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2007-11-07 18:26:29 +01:00
|
|
|
{"save_parts_readwrite", "FALSE", &prefs_common.save_parts_readwrite, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2006-08-02 18:30:28 +02:00
|
|
|
{"hide_quotes", "0", &prefs_common.hide_quotes, P_INT,
|
2006-07-31 19:17:32 +02:00
|
|
|
NULL, NULL, NULL},
|
2006-12-09 23:02:32 +01:00
|
|
|
{"unsafe_ssl_certs", "FALSE", &prefs_common.unsafe_ssl_certs, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2007-04-03 09:08:26 +02:00
|
|
|
#ifndef MAEMO
|
|
|
|
{"real_time_sync", "FALSE", &prefs_common.real_time_sync, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#else
|
|
|
|
{"real_time_sync", "TRUE", &prefs_common.real_time_sync, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
#endif
|
2007-09-18 19:58:21 +02:00
|
|
|
|
|
|
|
{"print_paper_type", NULL, &prefs_common.print_paper_type, P_STRING,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"print_paper_orientation", "0", &prefs_common.print_paper_orientation, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"print_use_color", "0", &prefs_common.print_use_color, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"print_use_collate", "0", &prefs_common.print_use_collate, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"print_use_reverse", "0", &prefs_common.print_use_reverse, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"print_use_duplex", "0", &prefs_common.print_use_duplex, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"print_imgs", "1", &prefs_common.print_imgs, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2007-09-19 09:02:06 +02:00
|
|
|
{"print_previewwin_width", "600", &prefs_common.print_previewwin_width, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
|
|
|
{"print_previewwin_height", "-1", &prefs_common.print_previewwin_height, P_INT,
|
|
|
|
NULL, NULL, NULL},
|
2008-02-18 18:41:40 +01:00
|
|
|
{"use_networkmanager", "TRUE", &prefs_common.use_networkmanager, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2008-04-18 18:26:05 +02:00
|
|
|
{"use_shred", "FALSE", &prefs_common.use_shred, P_BOOL,
|
|
|
|
NULL, NULL, NULL},
|
2007-09-18 19:58:21 +02:00
|
|
|
|
2008-04-22 20:35:12 +02:00
|
|
|
{"two_line_vertical", "TRUE", &prefs_common.two_line_vert,
|
|
|
|
P_BOOL, NULL, NULL, NULL },
|
|
|
|
|
2001-04-19 14:21:46 +02:00
|
|
|
{NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
|
2004-05-10 12:22:28 +02:00
|
|
|
/*
|
2007-11-27 10:37:23 +01:00
|
|
|
* Read history list from the specified history file in the specified directory (subdir of rc_dir)
|
|
|
|
* Fallback to default_list if history file is not found
|
2004-05-10 12:22:28 +02:00
|
|
|
*/
|
2007-11-27 10:37:23 +01:00
|
|
|
GList *prefs_common_read_history_from_dir_with_defaults(const gchar *dirname, const gchar *history,
|
|
|
|
GList *default_list)
|
2001-04-19 14:21:46 +02:00
|
|
|
{
|
2001-11-07 11:29:45 +01:00
|
|
|
FILE *fp;
|
|
|
|
gchar *path;
|
|
|
|
gchar buf[PREFSBUFSIZE];
|
2004-05-10 12:22:28 +02:00
|
|
|
GList *tmp = NULL;
|
2001-11-07 11:29:45 +01:00
|
|
|
|
2007-11-27 10:37:23 +01:00
|
|
|
if (dirname) {
|
|
|
|
path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, dirname,
|
|
|
|
G_DIR_SEPARATOR_S, history,
|
|
|
|
NULL);
|
|
|
|
} else {
|
2004-05-10 12:22:28 +02:00
|
|
|
path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, history,
|
2001-11-07 11:29:45 +01:00
|
|
|
NULL);
|
2007-11-27 10:37:23 +01:00
|
|
|
}
|
2005-08-19 11:30:30 +02:00
|
|
|
if ((fp = g_fopen(path, "rb")) == NULL) {
|
2001-11-07 11:29:45 +01:00
|
|
|
if (ENOENT != errno) FILE_OP_ERROR(path, "fopen");
|
|
|
|
g_free(path);
|
2007-11-27 10:37:23 +01:00
|
|
|
/* returns default list if set, otherwise NULL */
|
|
|
|
return default_list;
|
2001-11-07 11:29:45 +01:00
|
|
|
}
|
|
|
|
g_free(path);
|
|
|
|
while (fgets(buf, sizeof(buf), fp) != NULL) {
|
|
|
|
g_strstrip(buf);
|
|
|
|
if (buf[0] == '\0') continue;
|
2004-05-10 12:22:28 +02:00
|
|
|
tmp = add_history(tmp, buf);
|
2001-11-07 11:29:45 +01:00
|
|
|
}
|
|
|
|
fclose(fp);
|
|
|
|
|
2004-05-10 12:22:28 +02:00
|
|
|
tmp = g_list_reverse(tmp);
|
|
|
|
|
|
|
|
return tmp;
|
|
|
|
}
|
|
|
|
|
2007-11-27 10:37:23 +01:00
|
|
|
/*
|
|
|
|
* Read history list from the specified history file in the specified directory (subdir of rc_dir)
|
|
|
|
*/
|
|
|
|
static GList *prefs_common_read_history_from_dir(const gchar *dirname, const gchar *history)
|
|
|
|
{
|
|
|
|
return prefs_common_read_history_from_dir_with_defaults(dirname, history, NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Read history list from the specified history file
|
|
|
|
*/
|
|
|
|
static GList *prefs_common_read_history(const gchar *history)
|
|
|
|
{
|
|
|
|
return prefs_common_read_history_from_dir(NULL, history);
|
|
|
|
}
|
|
|
|
|
2004-05-10 12:22:28 +02:00
|
|
|
void prefs_common_read_config(void)
|
|
|
|
{
|
2005-02-01 09:58:33 +01:00
|
|
|
gchar *rcpath;
|
2006-04-09 18:17:20 +02:00
|
|
|
gchar *tmp;
|
2005-12-02 12:43:58 +01:00
|
|
|
|
2005-02-01 09:58:33 +01:00
|
|
|
rcpath = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL);
|
|
|
|
prefs_read_config(param, "Common", rcpath, NULL);
|
2006-02-08 22:49:06 +01:00
|
|
|
#ifdef G_OS_WIN32
|
|
|
|
prefs_read_config(param_os_specific, "CommonWin32", rcpath, NULL);
|
|
|
|
#endif
|
|
|
|
|
2005-02-01 09:58:33 +01:00
|
|
|
g_free(rcpath);
|
2005-12-02 12:43:58 +01:00
|
|
|
|
2006-04-09 18:17:20 +02:00
|
|
|
tmp = g_strdup(gettext(prefs_common.date_format));
|
|
|
|
g_free(prefs_common.date_format);
|
|
|
|
prefs_common.date_format = tmp;
|
2005-12-02 12:43:58 +01:00
|
|
|
|
2001-11-07 11:29:45 +01:00
|
|
|
prefs_common.mime_open_cmd_history =
|
2004-05-10 12:22:28 +02:00
|
|
|
prefs_common_read_history(COMMAND_HISTORY);
|
|
|
|
prefs_common.summary_quicksearch_history =
|
|
|
|
prefs_common_read_history(QUICKSEARCH_HISTORY);
|
2006-12-01 11:01:04 +01:00
|
|
|
prefs_common.summary_search_from_history =
|
|
|
|
prefs_common_read_history(SUMMARY_SEARCH_FROM_HISTORY);
|
|
|
|
prefs_common.summary_search_to_history =
|
|
|
|
prefs_common_read_history(SUMMARY_SEARCH_TO_HISTORY);
|
|
|
|
prefs_common.summary_search_subject_history =
|
|
|
|
prefs_common_read_history(SUMMARY_SEARCH_SUBJECT_HISTORY);
|
|
|
|
prefs_common.summary_search_body_history =
|
|
|
|
prefs_common_read_history(SUMMARY_SEARCH_BODY_HISTORY);
|
|
|
|
prefs_common.summary_search_adv_condition_history =
|
|
|
|
prefs_common_read_history(SUMMARY_SEARCH_ADV_CONDITION_HISTORY);
|
|
|
|
prefs_common.message_search_history =
|
|
|
|
prefs_common_read_history(MESSAGE_SEARCH_HISTORY);
|
2006-03-06 16:11:01 +01:00
|
|
|
|
2007-11-27 10:37:23 +01:00
|
|
|
prefs_common.addressbook_custom_attributes = addressbook_update_custom_attr_from_prefs();
|
|
|
|
|
2006-03-06 16:11:01 +01:00
|
|
|
colorlabel_update_colortable_from_prefs();
|
2001-04-19 14:21:46 +02:00
|
|
|
}
|
|
|
|
|
2007-03-30 18:29:52 +02:00
|
|
|
#define TRY(func) \
|
|
|
|
if (!(func)) \
|
|
|
|
{ \
|
|
|
|
g_warning("failed to write\n"); \
|
|
|
|
goto out; \
|
|
|
|
} \
|
|
|
|
|
2004-05-10 12:22:28 +02:00
|
|
|
/*
|
2007-11-27 10:37:23 +01:00
|
|
|
* Save history list to the specified history file in the specified directory (subdir of rc_dir)
|
2004-05-10 12:22:28 +02:00
|
|
|
*/
|
2007-11-27 10:37:23 +01:00
|
|
|
static void prefs_common_save_history_to_dir(const gchar *dirname, const gchar *history, GList *list)
|
2001-04-19 14:21:46 +02:00
|
|
|
{
|
2001-11-07 11:29:45 +01:00
|
|
|
GList *cur;
|
|
|
|
FILE *fp;
|
2007-03-30 18:29:52 +02:00
|
|
|
gchar *path, *tmp_path;
|
2001-11-07 11:29:45 +01:00
|
|
|
|
2007-11-27 10:37:23 +01:00
|
|
|
if (dirname) {
|
|
|
|
path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, dirname,
|
|
|
|
G_DIR_SEPARATOR_S, history,
|
|
|
|
NULL);
|
|
|
|
} else {
|
2004-05-10 12:22:28 +02:00
|
|
|
path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, history,
|
2001-11-07 11:29:45 +01:00
|
|
|
NULL);
|
2007-11-27 10:37:23 +01:00
|
|
|
}
|
2007-03-30 18:29:52 +02:00
|
|
|
tmp_path = g_strconcat(path, ".tmp", NULL);
|
|
|
|
|
|
|
|
if ((fp = g_fopen(tmp_path, "wb")) == NULL) {
|
|
|
|
FILE_OP_ERROR(tmp_path, "fopen");
|
|
|
|
goto out;
|
2001-11-07 11:29:45 +01:00
|
|
|
}
|
|
|
|
|
2004-05-10 12:22:28 +02:00
|
|
|
for (cur = list; cur != NULL; cur = cur->next) {
|
2007-03-30 18:29:52 +02:00
|
|
|
TRY(fputs((gchar *)cur->data, fp) != EOF &&
|
|
|
|
fputc('\n', fp) != EOF);
|
2001-11-07 11:29:45 +01:00
|
|
|
}
|
|
|
|
|
2007-03-30 18:29:52 +02:00
|
|
|
if (fclose(fp) == EOF) {
|
|
|
|
FILE_OP_ERROR(tmp_path, "fclose");
|
|
|
|
fp = NULL;
|
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
fp = NULL;
|
|
|
|
#ifdef G_OS_WIN32
|
2008-04-18 18:26:05 +02:00
|
|
|
claws_unlink(path);
|
2007-03-30 18:29:52 +02:00
|
|
|
#endif
|
|
|
|
if (g_rename(tmp_path, path) < 0) {
|
|
|
|
FILE_OP_ERROR(path, "rename");
|
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
|
|
|
|
out:
|
|
|
|
if (fp)
|
|
|
|
fclose(fp);
|
|
|
|
g_free(tmp_path);
|
2001-11-07 11:29:45 +01:00
|
|
|
g_free(path);
|
2001-04-19 14:21:46 +02:00
|
|
|
}
|
|
|
|
|
2007-11-27 10:37:23 +01:00
|
|
|
/*
|
|
|
|
* Save history list to the specified history file
|
|
|
|
*/
|
|
|
|
static void prefs_common_save_history(const gchar *history, GList *list)
|
|
|
|
{
|
|
|
|
prefs_common_save_history_to_dir(NULL, history, list);
|
|
|
|
}
|
|
|
|
|
2007-03-30 18:29:52 +02:00
|
|
|
#undef TRY
|
|
|
|
|
2004-07-16 13:12:46 +02:00
|
|
|
void prefs_common_write_config(void)
|
2004-05-10 12:22:28 +02:00
|
|
|
{
|
2004-07-16 13:12:46 +02:00
|
|
|
prefs_write_config(param, "Common", COMMON_RC);
|
2006-02-08 22:49:06 +01:00
|
|
|
#ifdef G_OS_WIN32
|
|
|
|
prefs_write_config(param_os_specific, "CommonWin32", COMMON_RC);
|
|
|
|
#endif
|
2004-05-10 12:22:28 +02:00
|
|
|
|
|
|
|
prefs_common_save_history(COMMAND_HISTORY,
|
|
|
|
prefs_common.mime_open_cmd_history);
|
|
|
|
prefs_common_save_history(QUICKSEARCH_HISTORY,
|
|
|
|
prefs_common.summary_quicksearch_history);
|
2006-12-01 11:01:04 +01:00
|
|
|
prefs_common_save_history(SUMMARY_SEARCH_FROM_HISTORY,
|
|
|
|
prefs_common.summary_search_from_history);
|
|
|
|
prefs_common_save_history(SUMMARY_SEARCH_TO_HISTORY,
|
|
|
|
prefs_common.summary_search_to_history);
|
|
|
|
prefs_common_save_history(SUMMARY_SEARCH_SUBJECT_HISTORY,
|
|
|
|
prefs_common.summary_search_subject_history);
|
|
|
|
prefs_common_save_history(SUMMARY_SEARCH_BODY_HISTORY,
|
|
|
|
prefs_common.summary_search_body_history);
|
|
|
|
prefs_common_save_history(SUMMARY_SEARCH_ADV_CONDITION_HISTORY,
|
|
|
|
prefs_common.summary_search_adv_condition_history);
|
|
|
|
prefs_common_save_history(MESSAGE_SEARCH_HISTORY,
|
|
|
|
prefs_common.message_search_history);
|
2007-11-27 10:37:23 +01:00
|
|
|
|
|
|
|
prefs_common_save_history_to_dir(ADDRBOOK_DIR,
|
|
|
|
ADDRESSBOOK_CUSTOM_ATTRIBUTES,
|
|
|
|
prefs_common.addressbook_custom_attributes);
|
2004-05-10 12:22:28 +02:00
|
|
|
}
|
|
|
|
|
2006-10-30 17:06:45 +01:00
|
|
|
/* make a copy of string 'in' into buffer 'out'. un-escape \ sequences.
|
|
|
|
both 'in' and 'out' must be non-NULL.
|
|
|
|
'out' must be a pointer to a buffer whose size is at least equal
|
2006-11-09 16:15:17 +01:00
|
|
|
to strlen(txt)+1, this buffer will get cleared. out's contents
|
|
|
|
will always get set to a valid string, even if it's "".*/
|
2006-10-30 17:06:45 +01:00
|
|
|
void pref_get_unescaped_pref(gchar *out, const gchar *in)
|
2001-06-23 02:10:03 +02:00
|
|
|
{
|
2006-11-09 16:15:17 +01:00
|
|
|
const gchar *i;
|
|
|
|
gchar *o;
|
|
|
|
|
|
|
|
*out = '\0';
|
2006-10-30 17:06:45 +01:00
|
|
|
|
|
|
|
g_return_if_fail( in != NULL );
|
|
|
|
g_return_if_fail( out != NULL );
|
|
|
|
|
|
|
|
i = in;
|
|
|
|
o = out;
|
|
|
|
memset(out, 0, strlen(in)+1);
|
|
|
|
while (*i != '\0') {
|
|
|
|
if (*i == '\\' && *(i+1) == 'n') {
|
|
|
|
*o++ = '\n';
|
|
|
|
i++;
|
|
|
|
} else if (*i == '\\' && *(i+1) == 't') {
|
|
|
|
*o++ = '\t';
|
|
|
|
i++;
|
|
|
|
} else if (*i == '\\' && *(i+1) == '\\') {
|
|
|
|
*o++ = '\\';
|
|
|
|
i++;
|
2005-05-31 03:08:04 +02:00
|
|
|
} else {
|
2006-10-30 17:06:45 +01:00
|
|
|
*o++ = *i;
|
2005-05-31 03:08:04 +02:00
|
|
|
}
|
2006-10-30 17:06:45 +01:00
|
|
|
i++;
|
2005-05-31 03:08:04 +02:00
|
|
|
}
|
2006-10-30 17:06:45 +01:00
|
|
|
*o='\0';
|
|
|
|
}
|
2001-06-23 02:10:03 +02:00
|
|
|
|
2006-11-09 16:15:17 +01:00
|
|
|
/* make a copy of string 'in' into buffer 'out'. escape \ sequences.
|
|
|
|
both 'in' and 'out' must be non-NULL.
|
|
|
|
'out' must be a pointer to a buffer whose size is at least equal
|
|
|
|
to 2*strlen(txt)+1. out's contents will always get set to a valid
|
|
|
|
string, even if it's "". */
|
|
|
|
void pref_get_escaped_pref(gchar *out, const gchar *in)
|
|
|
|
{
|
|
|
|
const gchar *i;
|
|
|
|
gchar *o;
|
|
|
|
|
|
|
|
*out = '\0';
|
|
|
|
|
|
|
|
g_return_if_fail( in != NULL );
|
|
|
|
g_return_if_fail( out != NULL );
|
|
|
|
|
|
|
|
i = in;
|
|
|
|
o = out;
|
|
|
|
while (*i != '\0') {
|
|
|
|
if (*i == '\n') {
|
|
|
|
*o++ = '\\';
|
|
|
|
*o++ = 'n';
|
|
|
|
} else if (*i == '\t') {
|
|
|
|
*o++ = '\\';
|
|
|
|
*o++ = 't';
|
|
|
|
} else if (*i == '\\') {
|
|
|
|
*o++ = '\\';
|
|
|
|
*o++ = '\\';
|
|
|
|
} else {
|
|
|
|
*o++ = *i;
|
|
|
|
}
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
*o = '\0';
|
|
|
|
}
|
|
|
|
|
2006-10-30 17:06:45 +01:00
|
|
|
/* set the contents of a textview widget from the internal \-escaped
|
2006-11-09 16:15:17 +01:00
|
|
|
representation of a pref string. both txt and textview must be non-NULL. */
|
2006-10-30 17:06:45 +01:00
|
|
|
void pref_set_textview_from_pref(GtkTextView *textview, const gchar *txt)
|
|
|
|
{
|
2006-11-09 16:15:17 +01:00
|
|
|
GtkTextBuffer *buffer;
|
|
|
|
gchar *out = NULL;
|
|
|
|
|
|
|
|
g_return_if_fail( textview != NULL );
|
|
|
|
|
|
|
|
buffer = gtk_text_view_get_buffer(textview);
|
|
|
|
|
2007-06-07 17:12:42 +02:00
|
|
|
if (!txt) {
|
|
|
|
gtk_text_buffer_set_text(buffer, "", -1);
|
|
|
|
} else {
|
|
|
|
out = malloc(strlen(txt)+1);
|
2006-11-09 16:15:17 +01:00
|
|
|
|
2007-06-07 17:12:42 +02:00
|
|
|
pref_get_unescaped_pref(out, txt);
|
|
|
|
|
|
|
|
gtk_text_buffer_set_text(buffer, out?out:"", -1);
|
|
|
|
g_free(out);
|
|
|
|
}
|
2006-11-09 16:15:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* set the contents of a gtkentry widget from the internal \-escaped
|
|
|
|
representation of a pref string. both txt and entry must be non-NULL. */
|
|
|
|
void pref_set_entry_from_pref(GtkEntry *entry, const gchar *txt)
|
|
|
|
{
|
2006-10-30 17:06:45 +01:00
|
|
|
gchar *out = NULL;
|
|
|
|
|
2006-11-09 16:15:17 +01:00
|
|
|
g_return_if_fail( entry != NULL );
|
2007-06-07 17:12:42 +02:00
|
|
|
if (!txt) {
|
|
|
|
gtk_entry_set_text(entry, "");
|
|
|
|
} else {
|
|
|
|
out = malloc(strlen(txt)+1);
|
2006-10-30 17:06:45 +01:00
|
|
|
|
2007-06-07 17:12:42 +02:00
|
|
|
pref_get_unescaped_pref(out, txt);
|
2006-10-30 17:06:45 +01:00
|
|
|
|
2007-06-07 17:12:42 +02:00
|
|
|
gtk_entry_set_text(entry, out?out:"");
|
|
|
|
g_free(out);
|
|
|
|
}
|
2005-05-31 03:08:04 +02:00
|
|
|
}
|
2001-06-23 02:10:03 +02:00
|
|
|
|
2006-10-30 17:06:45 +01:00
|
|
|
/* get the \-escaped internal representation of a pref from the contents of
|
2006-11-09 16:15:17 +01:00
|
|
|
a textview widget. textview must be non-NULL. */
|
2005-05-31 03:08:04 +02:00
|
|
|
gchar *pref_get_pref_from_textview(GtkTextView *textview)
|
2001-06-23 02:10:03 +02:00
|
|
|
{
|
2005-05-31 03:08:04 +02:00
|
|
|
GtkTextBuffer *buffer;
|
|
|
|
GtkTextIter start, end;
|
2006-11-09 16:15:17 +01:00
|
|
|
gchar *out, *tmp;
|
2005-05-31 03:08:04 +02:00
|
|
|
|
2006-11-09 16:15:17 +01:00
|
|
|
g_return_val_if_fail( textview != NULL, "" );
|
|
|
|
|
2005-05-31 03:08:04 +02:00
|
|
|
buffer = gtk_text_view_get_buffer(textview);
|
|
|
|
gtk_text_buffer_get_start_iter(buffer, &start);
|
|
|
|
gtk_text_buffer_get_iter_at_offset(buffer, &end, -1);
|
|
|
|
tmp = gtk_text_buffer_get_text(buffer, &start, &end, FALSE);
|
2006-11-09 16:15:17 +01:00
|
|
|
out = malloc(2*strlen(tmp)+1);
|
2005-05-31 03:08:04 +02:00
|
|
|
|
2006-11-09 16:15:17 +01:00
|
|
|
pref_get_escaped_pref(out, tmp);
|
|
|
|
g_free(tmp);
|
|
|
|
|
|
|
|
return out?out:"";
|
|
|
|
}
|
|
|
|
|
|
|
|
/* get the \-escaped internal representation of a pref from the contents of
|
|
|
|
a gtkentry widget. entry must be non-NULL. */
|
|
|
|
gchar *pref_get_pref_from_entry(GtkEntry *entry)
|
|
|
|
{
|
|
|
|
gchar *out, *tmp;
|
|
|
|
|
|
|
|
g_return_val_if_fail( entry != NULL, "" );
|
|
|
|
|
|
|
|
tmp = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1);
|
|
|
|
out = malloc(2*strlen(tmp)+1);
|
|
|
|
|
|
|
|
pref_get_escaped_pref(out, tmp);
|
2005-05-31 03:08:04 +02:00
|
|
|
g_free(tmp);
|
2001-06-23 02:10:03 +02:00
|
|
|
|
2006-11-09 16:15:17 +01:00
|
|
|
return out?out:"";
|
2005-05-31 03:08:04 +02:00
|
|
|
}
|
2006-12-09 23:02:32 +01:00
|
|
|
|
|
|
|
/* ugly hack to be able to get this pref from ssl_certificate.c */
|
|
|
|
gboolean prefs_common_unsafe_ssl_certs(void)
|
|
|
|
{
|
|
|
|
return prefs_common.unsafe_ssl_certs;
|
|
|
|
}
|
2007-04-20 16:54:54 +02:00
|
|
|
|
2007-07-17 15:21:50 +02:00
|
|
|
gboolean prefs_common_enable_log_standard(void)
|
|
|
|
{
|
|
|
|
return prefs_common.enable_log_standard;
|
|
|
|
}
|
|
|
|
|
|
|
|
gboolean prefs_common_enable_log_warning(void)
|
|
|
|
{
|
|
|
|
return prefs_common.enable_log_warning;
|
|
|
|
}
|
|
|
|
gboolean prefs_common_enable_log_error(void)
|
|
|
|
{
|
|
|
|
return prefs_common.enable_log_error;
|
|
|
|
}
|
|
|
|
gboolean prefs_common_enable_log_status(void)
|
|
|
|
{
|
|
|
|
return prefs_common.enable_log_status;
|
|
|
|
}
|
2007-07-19 18:36:11 +02:00
|
|
|
|
|
|
|
#ifdef MAEMO
|
|
|
|
const gchar *prefs_common_get_data_root(void)
|
|
|
|
{
|
|
|
|
if (prefs_common.data_root && *prefs_common.data_root)
|
|
|
|
return prefs_common.data_root;
|
|
|
|
else
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
#endif
|
2007-04-20 16:54:54 +02:00
|
|
|
/**
|
|
|
|
return the translated name of a header, if the translate_header option is
|
|
|
|
set, otherwise return the untranslated header name (header_name itself).
|
|
|
|
this function is provided for convenience, it's an interface to
|
|
|
|
prefs_common.trans_hdr.
|
|
|
|
works with header names either with or without trailing colon, provided
|
|
|
|
that gettext found such header name in the sources (they should all be
|
|
|
|
found in src/gtk/headers.h anyway).
|
|
|
|
*/
|
|
|
|
const gchar *prefs_common_translated_header_name(const gchar *header_name)
|
|
|
|
{
|
2007-04-23 21:01:21 +02:00
|
|
|
if (header_name == NULL || *header_name == '\0')
|
2007-04-20 16:54:54 +02:00
|
|
|
return header_name;
|
|
|
|
|
|
|
|
return prefs_common.trans_hdr ? gettext(header_name) : header_name;
|
|
|
|
}
|
2007-11-21 19:58:18 +01:00
|
|
|
|
|
|
|
const gchar *prefs_common_get_uri_cmd(void)
|
|
|
|
{
|
|
|
|
gchar *tmp = NULL;
|
|
|
|
|
|
|
|
if (!prefs_common.cmds_use_system_default)
|
|
|
|
return prefs_common.uri_cmd;
|
|
|
|
|
|
|
|
tmp = g_find_program_in_path("xdg-open");
|
|
|
|
if (!tmp)
|
|
|
|
return prefs_common.uri_cmd;
|
|
|
|
|
|
|
|
g_free(tmp);
|
|
|
|
return "xdg-open %s";
|
|
|
|
}
|
|
|
|
|
|
|
|
const gchar *prefs_common_get_ext_editor_cmd(void)
|
|
|
|
{
|
|
|
|
return prefs_common.ext_editor_cmd;
|
|
|
|
#if 0 /* we should do that, but it detaches the editor and breaks
|
|
|
|
compose.c's external composition. */
|
|
|
|
gchar *tmp = NULL;
|
|
|
|
|
|
|
|
if (!prefs_common.cmds_use_system_default)
|
|
|
|
return prefs_common.ext_editor_cmd;
|
|
|
|
|
|
|
|
tmp = g_find_program_in_path("xdg-open");
|
|
|
|
if (!tmp)
|
|
|
|
return prefs_common.ext_editor_cmd;
|
|
|
|
|
|
|
|
g_free(tmp);
|
|
|
|
return "xdg-open %s";
|
|
|
|
#endif
|
|
|
|
}
|
2008-04-18 18:26:05 +02:00
|
|
|
|
|
|
|
gboolean prefs_common_get_use_shred(void)
|
|
|
|
{
|
|
|
|
return prefs_common.use_shred;
|
|
|
|
}
|