From 4b308cddb0efde0acf808f3a52a4e7653e9e0070 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 18 Mar 2004 04:58:29 +0000 Subject: started writing this, but i couldn't be fucked right now - apparently 2004-03-18 Not Zed * mail-config.c (mail_config_writable): started writing this, but i couldn't be fucked right now - apparently gnome is supposed to use the gconf thing which just doens't work. i'll waste a few hours trying to get it to work again first before i keep going with this. 2004-03-17 Not Zed * em-format-html.c (efh_message_deliverystatus): format as plain text too. * em-format.c (emf_message_deliverystatus): format delivery status messages as plain text, rather than as messages. since they wont be CamelMimeMessages. Maybe they should be silently hidden. * mail-offline-handler.c (store_go_online): split this, only call add_store/note_store once we've actually set the store online. (store_went_online): set the store up once we're fully online. Works around a deadlock in #55618. * em-account-prefs.c (account_cursor_change): disable editing/adding/removing accounts etc if accounts aren't editable. (em_account_prefs_construct): call above after setup. * mail-component.c (mc_quit_sync): if we have empty on exit days, check that. keep track of the last empty on exit time. * em-mailer-prefs.c (emmp_empty_trash_init): init the trash stuff here. (em_mailer_prefs_apply): save empty trash on exit frequency. svn path=/trunk/; revision=25110 --- mail/mail-config.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'mail/mail-config.c') diff --git a/mail/mail-config.c b/mail/mail-config.c index 99419f7250..ed578b4b58 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -1524,3 +1524,48 @@ mail_config_signature_set_html (MailConfigSignature *sig, gboolean html) mail_config_signature_emit_event (MAIL_CONFIG_SIG_EVENT_HTML_CHANGED, sig); } } + +static const struct _mc_perm { + const char *key; + guint32 perm; +} mc_perms[] = { + { "composer/charset", }, + { "composer/send_html", }, + { "composer/magic_smileys", }, + { "composer/inline_spelling", }, + { "format/forward_style", }, + { "format/reply_style", }, + { "trash/empty_on_exit", }, + { "trash/empty_on_exit_days", }, + { "display/charset" }, + { "display/headers" }, + { "display/labels" }, + { "display/fonts/monospace" }, + { "display/fonts/variable" }, + { "display/load_http_images" }, +}; + +struct _mc_item { +} mc_items[MAIL_CONFIG_ITEM_LAST] = { + { /* MAIL_CONFIG_ACCOUNTS */ }, + { /* MAIL_CONFIG_COMPOSER_CHARSET */ }, + { /* MAIL_CONFIG_COMPOSER_SEND_HTML */ }, + { /* MAIL_CONFIG_COMPOSER_MAGIC_SMILEYS */ }, + { /* MAIL_CONFIG_COMPOSER_SPELL_CHECK */ }, + { /* MAIL_CONFIG_FORMAT_FORWARD_STYLE */ }, + { /* MAIL_CONFIG_FORMAT_REPLY_STYLE */ }, + { /* MAIL_CONFIG_TRASH_EMPTY_ON_EXIT */ }, + { /* MAIL_CONFIG_TRASH_EMPTY_ON_EXIT_DAYS */ }, + { /* MAIL_CONFIG_DISPLAY_CHARSET */ }, + { /* MAIL_CONFIG_DISPLAY_HEADERS */ }, + { /* MAIL_CONFIG_DISPLAY_LABELS */ }, + { /* MAIL_CONFIG_DISPLAY_FONT_MONO */ }, + { /* MAIL_CONFIG_DISPLAY_FONT_PROP */ }, + { /* MAIL_CONFIG_DISPLAY_LOAD_HTTP */ }, +}; + +gboolean mail_config_writable(mail_config_item_t item) +{ + +} + -- cgit v1.2.3