aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-06-15 15:04:08 +0800
committerMilan Crha <mcrha@redhat.com>2012-06-15 15:04:08 +0800
commit94daae3dba8e86e88f69320bc82795fe660ec9cd (patch)
tree9965d4f6dfc6d48adecd0b9084442185d73d58c7
parent08dedf0a8a520b55c51a8117dc015915ec39f7fe (diff)
downloadgsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar.gz
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar.bz2
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar.lz
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar.xz
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.tar.zst
gsoc2013-evolution-94daae3dba8e86e88f69320bc82795fe660ec9cd.zip
Remove the last remaining usage of GConf
-rw-r--r--calendar/alarm-notify/Makefile.am2
-rw-r--r--calendar/alarm-notify/notify-main.c5
-rw-r--r--calendar/gui/e-memo-list-selector.c1
-rw-r--r--configure.ac17
-rw-r--r--data/Makefile.am1
-rw-r--r--data/evolution.convert5
-rw-r--r--data/org.gnome.evolution.mail.gschema.xml.in10
-rw-r--r--data/org.gnome.evolution.plugin.publish-calendar.gschema.xml.in9
-rw-r--r--doc/devel/evolution-plugin-manual.xml2
-rw-r--r--e-util/e-util.h1
-rw-r--r--evolution-shell.pc.in2
-rw-r--r--mail/Makefile.am35
-rw-r--r--mail/e-mail-browser.c2
-rw-r--r--mail/e-mail-migrate.c225
-rw-r--r--mail/e-mail-reader-utils.c1
-rw-r--r--mail/em-utils.c29
-rw-r--r--mail/evolution-mail.schemas.in1828
-rw-r--r--mail/importers/elm-importer.c25
-rw-r--r--mail/importers/pine-importer.c36
-rw-r--r--mail/mail-send-recv.c3
-rw-r--r--modules/addressbook/Makefile.am35
-rw-r--r--modules/addressbook/apps_evolution_addressbook.schemas.in155
-rw-r--r--modules/backup-restore/evolution-backup-tool.c61
-rw-r--r--modules/bogofilter/Makefile.am34
-rw-r--r--modules/bogofilter/evolution-bogofilter.schemas.in20
-rw-r--r--modules/calendar/Makefile.am30
-rw-r--r--modules/calendar/apps_evolution_calendar.schemas.in839
-rw-r--r--modules/calendar/e-cal-shell-settings.c37
-rw-r--r--modules/mail/e-mail-config-format-html.c61
-rw-r--r--modules/mail/e-mail-config-web-view.c2
-rw-r--r--modules/mail/e-mail-shell-settings.c9
-rw-r--r--modules/mail/em-composer-prefs.c2
-rw-r--r--modules/mail/em-mailer-prefs.c62
-rw-r--r--modules/mail/em-mailer-prefs.h2
-rw-r--r--modules/mailto-handler/Makefile.am34
-rw-r--r--modules/mailto-handler/apps-evolution-mail-prompts-checkdefault.schemas.in16
-rw-r--r--modules/spamassassin/Makefile.am34
-rw-r--r--modules/spamassassin/evolution-spamassassin.c4
-rw-r--r--modules/spamassassin/evolution-spamassassin.schemas.in33
-rw-r--r--plugins/attachment-reminder/Makefile.am35
-rw-r--r--plugins/attachment-reminder/apps-evolution-attachment-reminder.schemas.in26
-rw-r--r--plugins/email-custom-header/Makefile.am32
-rw-r--r--plugins/email-custom-header/apps_evolution_email_custom_header.schemas.in17
-rw-r--r--plugins/email-custom-header/email-custom-header.c111
-rw-r--r--plugins/email-custom-header/email-custom-header.h4
-rw-r--r--plugins/external-editor/Makefile.am35
-rw-r--r--plugins/external-editor/apps-evolution-external-editor.schemas.in28
-rw-r--r--plugins/face/Makefile.am37
-rw-r--r--plugins/face/apps_evolution_eplugin_face.schemas.in17
-rw-r--r--plugins/mail-notification/Makefile.am35
-rw-r--r--plugins/mail-notification/apps-evolution-mail-notification.schemas.in73
-rw-r--r--plugins/publish-calendar/publish-calendar.c114
-rw-r--r--plugins/publish-calendar/publish-location.c56
-rw-r--r--plugins/publish-calendar/publish-location.h3
-rw-r--r--plugins/save-calendar/rdf-format.c1
-rw-r--r--plugins/templates/Makefile.am35
-rw-r--r--plugins/templates/apps-evolution-template-placeholders.schemas.in26
-rw-r--r--po/POTFILES.in14
-rw-r--r--shell/Makefile.am37
-rw-r--r--shell/apps_evolution_shell.schemas.in408
-rw-r--r--shell/e-shell-migrate.c2
-rw-r--r--shell/e-shell-window-actions.c2
-rw-r--r--shell/e-shell-window.c10
-rw-r--r--shell/e-shell.c4
-rw-r--r--shell/main.c5
65 files changed, 334 insertions, 4542 deletions
diff --git a/calendar/alarm-notify/Makefile.am b/calendar/alarm-notify/Makefile.am
index 50cd85628b..775a3693cb 100644
--- a/calendar/alarm-notify/Makefile.am
+++ b/calendar/alarm-notify/Makefile.am
@@ -21,7 +21,6 @@ evolution_alarm_notify_CPPFLAGS = \
$(EVOLUTION_DATA_SERVER_CFLAGS) \
$(GNOME_PLATFORM_CFLAGS) \
$(LIBNOTIFY_CFLAGS) \
- $(DBUS_GLIB_CFLAGS) \
$(CANBERRA_CFLAGS)
ui_DATA = \
@@ -55,7 +54,6 @@ evolution_alarm_notify_LDADD = \
$(EVOLUTION_DATA_SERVER_LIBS) \
$(GNOME_PLATFORM_LIBS) \
$(LIBNOTIFY_LIBS) \
- $(DBUS_GLIB_LIBS) \
$(CANBERRA_LIBS) \
$(EVOLUTIONALARMNOTIFYICON)
diff --git a/calendar/alarm-notify/notify-main.c b/calendar/alarm-notify/notify-main.c
index 0ddfc5866b..2b04104417 100644
--- a/calendar/alarm-notify/notify-main.c
+++ b/calendar/alarm-notify/notify-main.c
@@ -30,8 +30,6 @@
#include <stdlib.h>
#include <glib/gi18n.h>
-#include <dbus/dbus-glib.h>
-
#include "alarm-notify.h"
#ifdef G_OS_WIN32
@@ -84,9 +82,6 @@ main (gint argc,
gtk_init (&argc, &argv);
- /* this is to initialize threading for dbus-glib used by GConf */
- dbus_g_thread_init ();
-
e_gdbus_templates_init_main_thread ();
#ifdef G_OS_WIN32
diff --git a/calendar/gui/e-memo-list-selector.c b/calendar/gui/e-memo-list-selector.c
index 3e5623081a..8da45b68f3 100644
--- a/calendar/gui/e-memo-list-selector.c
+++ b/calendar/gui/e-memo-list-selector.c
@@ -19,7 +19,6 @@
*/
#include <config.h>
-#include <gconf/gconf-client.h>
#include "e-memo-list-selector.h"
diff --git a/configure.ac b/configure.ac
index fc4299398c..225683319d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,7 +44,6 @@ m4_define([gnome_icon_theme_minimum_version], [2.30.2.1])
m4_define([gsettings_desktop_schemas_minimum_version], [2.91.92])
m4_define([webkitgtk_minimum_version], [1.8.0])
m4_define([javascriptcoregtk_minimum_version], [1.8.0])
-m4_define([gconf_minimum_version], [2.0.0]) dnl XXX Just a Guess
m4_define([libgdata_minimum_version], [0.10])
m4_define([libsoup_minimum_version], [2.38.1])
m4_define([libxml_minimum_version], [2.7.3])
@@ -252,7 +251,6 @@ PKG_CHECK_MODULES([GNOME_PLATFORM],
cairo-gobject
gtk+-3.0 >= gtk_minimum_version
gail-3.0 >= gtk_minimum_version
- gconf-2.0 >= gconf_minimum_version
libxml-2.0 >= libxml_minimum_version
shared-mime-info >= shared_mime_info_minimum_version
gnome-desktop-3.0 >= gnome_desktop_minimum_version
@@ -273,15 +271,6 @@ AC_SUBST(EVOLUTION_DATA_SERVER_CFLAGS)
AC_SUBST(EVOLUTION_DATA_SERVER_LIBS)
dnl ******************************
-dnl DBus-glib stuff, to initialize thread for GConf, which is using it
-dnl this is returned back only temporarily and wil lbe removed as soon
-dnl as eds will stop using GConf completely
-dnl ******************************
-PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 >= 0.6)
-AC_SUBST(DBUS_GLIB_CFLAGS)
-AC_SUBST(DBUS_GLIB_LIBS)
-
-dnl ******************************
dnl Canberra / Canberra-GTK Sound
dnl ******************************
AC_ARG_ENABLE([canberra],
@@ -1468,12 +1457,6 @@ AC_SUBST(dist_plugins_base)
AC_SUBST(dist_plugins_standard)
AC_SUBST(dist_plugins_experimental)
-dnl ***********
-dnl GConf stuff
-dnl ***********
-AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
-AM_GCONF_SOURCE_2
-
dnl ******************
dnl Sub-version number
dnl ******************
diff --git a/data/Makefile.am b/data/Makefile.am
index ea2ca3f6a4..05a1d57f7a 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -31,6 +31,7 @@ gsettings_SCHEMAS = \
org.gnome.evolution.plugin.itip.gschema.xml \
org.gnome.evolution.plugin.mail-notification.gschema.xml \
org.gnome.evolution.plugin.prefer-plain.gschema.xml \
+ org.gnome.evolution.plugin.publish-calendar.gschema.xml \
org.gnome.evolution.plugin.templates.gschema.xml
@INTLTOOL_XML_NOMERGE_RULE@
diff --git a/data/evolution.convert b/data/evolution.convert
index c370cd8e59..a1ab31d5de 100644
--- a/data/evolution.convert
+++ b/data/evolution.convert
@@ -133,6 +133,8 @@ composer-spell-color = /apps/evolution/mail/composer/spell_color
composer-spell-languages = /apps/evolution/mail/composer/spell_languages
composer-top-signature = /apps/evolution/mail/composer/top_signature
default-account = /apps/evolution/mail/default_account
+drag-and-drop-save-file-format = /apps/evolution/mail/save_file_format
+drag-and-drop-save-name-format = /apps/evolution/mail/save_name_format
error-level = /apps/evolution/mail/display/error_level
error-timeout = /apps/evolution/mail/display/error_timeout
filters-log-actions = /apps/evolution/mail/filters/log
@@ -278,5 +280,8 @@ notify-status-notification = /apps/evolution/eplugin/mail-notification/status-no
mode = /apps/evolution/eplugin/prefer_plain/mode
show-suppressed = /apps/evolution/eplugin/prefer_plain/show_suppressed
+[org.gnome.evolution.plugin.publish-calendar]
+uris = /apps/evolution/calendar/publish/uris
+
[org.gnome.evolution.plugin.templates]
template-placeholders = /apps/evolution/mail/template_placeholders
diff --git a/data/org.gnome.evolution.mail.gschema.xml.in b/data/org.gnome.evolution.mail.gschema.xml.in
index 42593bb894..0e83413a97 100644
--- a/data/org.gnome.evolution.mail.gschema.xml.in
+++ b/data/org.gnome.evolution.mail.gschema.xml.in
@@ -130,6 +130,16 @@
<_summary>List of localized 'Re'</_summary>
<_description>Comma-separated list of localized 'Re' abbreviations to skip in a subject text when replying to a message, as an addition to the standard "Re" prefix. An example is 'SV,AV'.</_description>
</key>
+ <key name="drag-and-drop-save-file-format" type="s">
+ <default>'mbox'</default>
+ <_summary>Save file format for drag-and-drop operation</_summary>
+ <_description>Can be either 'mbox' or 'pdf'.</_description>
+ </key>
+ <key name="drag-and-drop-save-name-format" type="i">
+ <default>1</default>
+ <_summary>Save name format for drag-and-drop operation</_summary>
+ <_description>Can be either 2 to use current date and time or any other value for sent date of the message. This has a meaning only when dropping just one message.</_description>
+ </key>
<key name="show-animated-images" type="b">
<default>false</default>
<_summary>Show image animations</_summary>
diff --git a/data/org.gnome.evolution.plugin.publish-calendar.gschema.xml.in b/data/org.gnome.evolution.plugin.publish-calendar.gschema.xml.in
new file mode 100644
index 0000000000..00073d2dc3
--- /dev/null
+++ b/data/org.gnome.evolution.plugin.publish-calendar.gschema.xml.in
@@ -0,0 +1,9 @@
+<schemalist>
+ <schema gettext-domain="evolution" id="org.gnome.evolution.plugin.publish-calendar" path="/org/gnome/evolution/plugin/publish-calendar/">
+ <key name="uris" type="as">
+ <default>[]</default>
+ <_summary>List of Destinations for publishing</_summary>
+ <_description>The key specifies the list of destinations to where publish calendars. Each values specifies an XML with setup for publishing to one destination.</_description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/doc/devel/evolution-plugin-manual.xml b/doc/devel/evolution-plugin-manual.xml
index 2046910a41..2ea1ce4fee 100644
--- a/doc/devel/evolution-plugin-manual.xml
+++ b/doc/devel/evolution-plugin-manual.xml
@@ -2361,7 +2361,7 @@
<para>The preferences target is used for global preferences. As
such it just contains a pointer to the global configuration store
- - a GConfClient.</para>
+ - a GSettings.</para>
<informaltable>
<tgroup cols="2">
diff --git a/e-util/e-util.h b/e-util/e-util.h
index be3150bc80..11dd77541e 100644
--- a/e-util/e-util.h
+++ b/e-util/e-util.h
@@ -26,7 +26,6 @@
#include <sys/types.h>
#include <gtk/gtk.h>
#include <limits.h>
-#include <gconf/gconf-client.h>
#include <libedataserver/libedataserver.h>
diff --git a/evolution-shell.pc.in b/evolution-shell.pc.in
index 0ba8d7c55d..100202cc45 100644
--- a/evolution-shell.pc.in
+++ b/evolution-shell.pc.in
@@ -17,7 +17,7 @@ execversion=@BASE_VERSION@
Name: evolution-shell
Description: libraries needed for Evolution shell components
Version: @VERSION@
-Requires: gtk+-3.0 gconf-2.0 libebackend-1.2 libedataserverui-3.0 webkitgtk-3.0
+Requires: gtk+-3.0 libebackend-1.2 libedataserverui-3.0 webkitgtk-3.0
Requires.private: gnome-desktop-3.0
Libs: -L${privlibdir} -leshell -Wl,-R${privlibdir}
Cflags: -I${privincludedir}
diff --git a/mail/Makefile.am b/mail/Makefile.am
index 7fa3dbab9c..cd02ad6fdf 100644
--- a/mail/Makefile.am
+++ b/mail/Makefile.am
@@ -274,7 +274,6 @@ EXTRA_DIST = \
README.async \
mail.error.xml \
$(ui_DATA) \
- $(schema_in_files) \
$(server_in_files) \
$(etspec_DATA) \
filtertypes.xml \
@@ -295,38 +294,6 @@ evolution-mail.pure: evolution-mail
endif
-
-# GConf
-
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = evolution-mail.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
# Prologue
dist-hook:
@@ -336,6 +303,4 @@ BUILT_SOURCES = $(error_DATA)
CLEANFILES = $(BUILT_SOURCES)
-DISTCLEANFILES = $(schema_DATA)
-
-include $(top_srcdir)/git.mk
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c
index eda9d6cbc3..5b89154885 100644
--- a/mail/e-mail-browser.c
+++ b/mail/e-mail-browser.c
@@ -45,8 +45,6 @@
(G_TYPE_INSTANCE_GET_PRIVATE \
((obj), E_TYPE_MAIL_BROWSER, EMailBrowserPrivate))
-#define MAIL_BROWSER_GCONF_PREFIX "/apps/evolution/mail/mail_browser"
-
#define ACTION_GROUP_STANDARD "action-group-standard"
#define ACTION_GROUP_SEARCH_FOLDERS "action-group-search-folders"
diff --git a/mail/e-mail-migrate.c b/mail/e-mail-migrate.c
index 8f913bb7c8..857523f146 100644
--- a/mail/e-mail-migrate.c
+++ b/mail/e-mail-migrate.c
@@ -42,8 +42,6 @@
#include <gtk/gtk.h>
-#include <gconf/gconf-client.h>
-
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xmlmemory.h>
@@ -271,152 +269,6 @@ emm_setup_initial (const gchar *data_dir)
}
static gboolean
-is_in_plugs_list (GSList *list,
- const gchar *value)
-{
- GSList *l;
-
- for (l = list; l; l = l->next) {
- if (l->data && !strcmp (l->data, value))
- return TRUE;
- }
-
- return FALSE;
-}
-
-/*
- * em_update_message_notify_settings_2_21
- * DBus plugin and sound email notification was merged to
- * mail-notification plugin, so move the options to new locations.
- */
-static void
-em_update_message_notify_settings_2_21 (void)
-{
- GConfClient *client;
- GConfValue *is_key;
- gboolean dbus, status;
- GSList *list;
- gchar *str;
- gint val;
-
- client = gconf_client_get_default ();
-
- is_key = gconf_client_get (
- client,
- "/apps/evolution/eplugin/mail-notification/dbus-enabled", NULL);
- if (is_key) {
- /* already migrated, so do not migrate again */
- gconf_value_free (is_key);
- g_object_unref (client);
-
- return;
- }
-
- gconf_client_set_bool (
- client,
- "/apps/evolution/eplugin/mail-notification/status-blink-icon",
- gconf_client_get_bool (
- client,
- "/apps/evolution/mail/notification/blink-status-icon",
- NULL), NULL);
- gconf_client_set_bool (
- client,
- "/apps/evolution/eplugin/mail-notification/status-notification",
- gconf_client_get_bool (
- client,
- "/apps/evolution/mail/notification/notification",
- NULL), NULL);
-
- list = gconf_client_get_list (
- client, "/apps/evolution/eplugin/disabled",
- GCONF_VALUE_STRING, NULL);
- dbus = !is_in_plugs_list (list, "org.gnome.evolution.new_mail_notify");
- status = !is_in_plugs_list (
- list, "org.gnome.evolution.mail_notification");
-
- gconf_client_set_bool (
- client,
- "/apps/evolution/eplugin/mail-notification/dbus-enabled",
- dbus, NULL);
- gconf_client_set_bool (
- client,
- "/apps/evolution/eplugin/mail-notification/status-enabled",
- status, NULL);
-
- if (!status) {
- GSList *plugins, *l;
-
- plugins = e_plugin_list_plugins ();
-
- for (l = plugins; l; l = l->next) {
- EPlugin *p = l->data;
-
- if (p && p->id && !strcmp (p->id,
- "org.gnome.evolution.mail_notification")) {
- e_plugin_enable (p, 1);
- break;
- }
- }
-
- g_slist_foreach (plugins, (GFunc) g_object_unref, NULL);
- g_slist_free (plugins);
- }
-
- g_slist_foreach (list, (GFunc) g_free, NULL);
- g_slist_free (list);
-
- val = gconf_client_get_int (
- client, "/apps/evolution/mail/notify/type", NULL);
- gconf_client_set_bool (
- client,
- "/apps/evolution/eplugin/mail-notification/sound-enabled",
- val == 1 || val == 2, NULL);
- gconf_client_set_bool (
- client,
- "/apps/evolution/eplugin/mail-notification/sound-beep",
- val == 0 || val == 1, NULL);
-
- str = gconf_client_get_string (
- client, "/apps/evolution/mail/notify/sound", NULL);
- gconf_client_set_string (
- client,
- "/apps/evolution/eplugin/mail-notification/sound-file",
- str ? str : "", NULL);
- g_free (str);
-
- g_object_unref (client);
-}
-
-/* fixing typo in SpamAssassin name */
-static void
-em_update_sa_junk_setting_2_23 (void)
-{
- GConfClient *client;
- GConfValue *key;
-
- client = gconf_client_get_default ();
-
- key = gconf_client_get (
- client, "/apps/evolution/mail/junk/default_plugin", NULL);
- if (key) {
- const gchar *str = gconf_value_get_string (key);
-
- if (str && strcmp (str, "Spamassasin") == 0)
- gconf_client_set_string (
- client,
- "/apps/evolution/mail/junk/default_plugin",
- "SpamAssassin", NULL);
-
- gconf_value_free (key);
- g_object_unref (client);
-
- return;
- }
-
- g_object_unref (client);
-}
-
-static gboolean
mbox_to_maildir_migration_needed (EShellBackend *shell_backend)
{
gchar *local_store;
@@ -694,66 +546,6 @@ migrate_local_store (EShellBackend *shell_backend)
}
static void
-em_ensure_proxy_ignore_hosts_being_list (void)
-{
- const gchar *key = "/apps/evolution/shell/network_config/ignore_hosts";
- GConfClient *client;
- GConfValue *key_value;
-
- /* Makes sure the 'key' is a list of strings, not a string,
- * as set by previous versions. */
-
- client = gconf_client_get_default ();
- key_value = gconf_client_get (client, key, NULL);
- if (key_value && key_value->type == GCONF_VALUE_STRING) {
- gchar *value = gconf_client_get_string (client, key, NULL);
- GSList *lst = NULL;
- GError *error = NULL;
-
- if (value && *value) {
- gchar **split = g_strsplit (value, ",", -1);
-
- if (split) {
- gint ii;
-
- for (ii = 0; split[ii]; ii++) {
- const gchar *tmp = split[ii];
-
- if (tmp && *tmp) {
- gchar *val = g_strstrip (g_strdup (tmp));
-
- if (val && *val)
- lst = g_slist_append (lst, val);
- else
- g_free (val);
- }
- }
- }
-
- g_strfreev (split);
- }
-
- gconf_client_unset (client, key, NULL);
- gconf_client_set_list (client, key, GCONF_VALUE_STRING, lst, &error);
-
- g_slist_foreach (lst, (GFunc) g_free, NULL);
- g_slist_free (lst);
- g_free (value);
-
- if (error) {
- fprintf (
- stderr, "%s: Failed to set a list values "
- "with error: %s\n", G_STRFUNC, error->message);
- g_error_free (error);
- }
- }
-
- if (key_value)
- gconf_value_free (key_value);
- g_object_unref (client);
-}
-
-static void
em_rename_view_in_folder (gpointer data,
gpointer user_data)
{
@@ -860,23 +652,6 @@ e_mail_migrate (EShellBackend *shell_backend,
if (major == 0)
return emm_setup_initial (data_dir);
-#ifndef G_OS_WIN32
- if (major < 2 || (major == 2 && minor < 22))
- em_update_message_notify_settings_2_21 ();
-
- if (major < 2 || (major == 2 && minor < 24))
- em_update_sa_junk_setting_2_23 ();
-#else
- if (major < 2 || (major == 2 && minor < 24))
- g_warning (
- "Upgrading from ancient versions %d.%d "
- "not supported on Windows", major, minor);
-#endif
-
- if (major < 2 || (major == 2 && minor < 32)) {
- em_ensure_proxy_ignore_hosts_being_list ();
- }
-
if (!migrate_local_store (shell_backend))
return FALSE;
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index d1c3d3d7e5..2030350d1b 100644
--- a/mail/e-mail-reader-utils.c
+++ b/mail/e-mail-reader-utils.c
@@ -30,7 +30,6 @@
#include <glib/gi18n.h>
#include <libxml/tree.h>
#include <gtkhtml/gtkhtml.h>
-#include <gconf/gconf-client.h>
#include <camel/camel.h>
#include "libevolution-utils/e-alert-dialog.h"
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 9be80fbf79..f4b9891f4f 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -975,7 +975,7 @@ em_utils_selection_set_urilist (GtkSelectionData *data,
gchar *tmpdir;
gchar *uri;
gint fd;
- GConfClient *client;
+ GSettings *settings;
gchar *exporttype;
gint exportname;
@@ -983,20 +983,21 @@ em_utils_selection_set_urilist (GtkSelectionData *data,
if (tmpdir == NULL)
return;
- client = gconf_client_get_default ();
- exporttype = gconf_client_get_string (
- client, "/apps/evolution/mail/save_file_format", NULL);
- if (exporttype == NULL)
+ settings = g_settings_new ("org.gnome.evolution.mail");
+ exporttype = g_settings_get_string (settings, "drag-and-drop-save-file-format");
+ if (g_strcmp0 (exporttype, "mbox") != 0 && g_strcmp0 (exporttype, "pdf") != 0) {
+ g_free (exporttype);
exporttype = g_strdup ("mbox");
- exportname = gconf_client_get_int (
- client, "/apps/evolution/mail/save_name_format", NULL);
+ }
+ exportname = g_settings_get_int (settings, "drag-and-drop-save-name-format");
+ g_object_unref (settings);
- if (g_ascii_strcasecmp (exporttype, "mbox")==0) {
+ if (g_ascii_strcasecmp (exporttype, "mbox") == 0) {
gchar * file = NULL;
CamelStream *fstream;
if (uids->len > 1) {
- gchar * tmp = g_strdup_printf(_("Messages from %s"), camel_folder_get_display_name (folder));
+ gchar * tmp = g_strdup_printf (_("Messages from %s"), camel_folder_get_display_name (folder));
e_filename_make_safe (tmp);
file = g_build_filename (tmpdir, tmp, NULL);
g_free (tmp);
@@ -1004,11 +1005,11 @@ em_utils_selection_set_urilist (GtkSelectionData *data,
file = em_utils_build_export_filename (folder, uids->pdata[0], exporttype, exportname, tmpdir);
}
- g_free (tmpdir);
fd = g_open (file, O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 0666);
if (fd == -1) {
g_free (file);
g_free (exporttype);
+ g_free (tmpdir);
return;
}
@@ -1029,9 +1030,10 @@ em_utils_selection_set_urilist (GtkSelectionData *data,
close (fd);
g_free (exporttype);
+ g_free (tmpdir);
g_free (file);
g_free (uri);
- } else if(g_ascii_strcasecmp (exporttype, "pdf")==0) {
+ } else if (g_ascii_strcasecmp (exporttype, "pdf") == 0) {
gchar ** filenames, **uris;
gint i, uris_count = 0;
@@ -1066,7 +1068,6 @@ em_utils_selection_set_urilist (GtkSelectionData *data,
uris[uris_count] = NULL;
gtk_selection_data_set_uris (data, uris);
- g_free (tmpdir);
for (i = 0; i < uids->len; i++) {
g_free (filenames[i]);
}
@@ -1076,10 +1077,10 @@ em_utils_selection_set_urilist (GtkSelectionData *data,
}
g_free (uris);
g_free (exporttype);
-
- } else {
g_free (tmpdir);
+ } else {
g_free (exporttype);
+ g_free (tmpdir);
}
}
diff --git a/mail/evolution-mail.schemas.in b/mail/evolution-mail.schemas.in
deleted file mode 100644
index 0e3eef3061..0000000000
--- a/mail/evolution-mail.schemas.in
+++ /dev/null
@@ -1,1828 +0,0 @@
-<gconfschemafile>
- <schemalist>
-
- <!-- Composer settings -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/charset</key>
- <applyto>/apps/evolution/mail/composer/charset</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Default charset in which to compose messages</short>
- <long>
- Default charset in which to compose messages.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/inline_spelling</key>
- <applyto>/apps/evolution/mail/composer/inline_spelling</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Spell check inline</short>
- <long>
- Draw spelling error indicators on words as you type.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/magic_links</key>
- <applyto>/apps/evolution/mail/composer/magic_links</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Automatic link recognition</short>
- <long>
- Recognize links in text and replace them.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/magic_smileys</key>
- <applyto>/apps/evolution/mail/composer/magic_smileys</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Automatic emoticon recognition</short>
- <long>
- Recognize emoticons in text and replace them with images.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/group_reply_to_list</key>
- <applyto>/apps/evolution/mail/composer/group_reply_to_list</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Group Reply replies to list</short>
- <long>
- Instead of the normal "Reply to All" behaviour, this option will
- make the 'Group Reply' toolbar button try to reply only to the
- mailing list through which you happened to receive the copy of
- the message to which you're replying.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/sign_reply_if_signed</key>
- <applyto>/apps/evolution/mail/composer/sign_reply_if_signed</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Digitally sign messages when original message signed (PGP or S/MIME)</short>
- <long>
- Automatically enable PGP or S/MIME signatures when replying
- to a message which is also PGP or S/MIME signed.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/reply_start_bottom</key>
- <applyto>/apps/evolution/mail/composer/reply_start_bottom</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Put the cursor at the bottom of replies</short>
- <long>Users get all up in arms over where the cursor should go when
- replying to a message. This determines whether the cursor is placed
- at the top of the message or the bottom.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/request_receipt</key>
- <applyto>/apps/evolution/mail/composer/request_receipt</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Always request read receipt</short>
- <long>
- Whether a read receipt request gets added to every message by default.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/send_html</key>
- <applyto>/apps/evolution/mail/composer/send_html</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Send HTML mail by default</short>
- <long>
- Send HTML mail by default.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/spell_color</key>
- <applyto>/apps/evolution/mail/composer/spell_color</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default>#FFFF00000000</default>
- <locale name="C">
- <short>Spell checking color</short>
- <long>
- Underline color for misspelled words when using inline spelling.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/spell_languages</key>
- <applyto>/apps/evolution/mail/composer/spell_languages</applyto>
- <owner>evolution-mail</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[]</default>
- <locale name="C">
- <short>Spell checking languages</short>
- <long>
- List of dictionary language codes used for spell checking.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/show_mail_bcc</key>
- <applyto>/apps/evolution/mail/composer/show_mail_bcc</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show "Bcc" field when sending a mail message</short>
- <long>
- Show the "Bcc" field when sending a mail message. This is
- controlled from the View menu when a mail account is chosen.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/show_mail_cc</key>
- <applyto>/apps/evolution/mail/composer/show_mail_cc</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Show "Cc" field when sending a mail message</short>
- <long>
- Show the "Cc" field when sending a mail message. This is
- controlled from the View menu when a mail account is chosen.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/show_mail_reply_to</key>
- <applyto>/apps/evolution/mail/composer/show_mail_reply_to</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show "Reply To" field when sending a mail message</short>
- <long>
- Show the "Reply To" field when sending a mail message. This
- is controlled from the View menu when a mail account is chosen.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/show_post_from</key>
- <applyto>/apps/evolution/mail/composer/show_post_from</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Show "From" field when posting to a newsgroup</short>
- <long>
- Show the "From" field when posting to a newsgroup. This is
- controlled from the View menu when a news account is chosen.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/show_post_reply_to</key>
- <applyto>/apps/evolution/mail/composer/show_post_reply_to</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show "Reply To" field when posting to a newsgroup</short>
- <long>
- Show the "Reply To" field when posting to a newsgroup. This
- is controlled from the View menu when a news account is chosen.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/outlook_filenames</key>
- <applyto>/apps/evolution/mail/composer/outlook_filenames</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Encode filenames in an Outlook/GMail way</short>
- <long>
- Encode filenames in the mail headers same as Outlook or GMail do, to let them display correctly filenames with UTF-8 letters sent by Evolution, because they do not follow the RFC 2231, but use the incorrect RFC 2047 standard.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/top_signature</key>
- <applyto>/apps/evolution/mail/composer/top_signature</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Put personalized signatures at the top of replies</short>
- <long>Users get all up in arms over where their signature should go
- when replying to a message. This determines whether the signature is
- placed at the top of the message or the bottom.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/no_signature_delim</key>
- <applyto>/apps/evolution/mail/composer/no_signature_delim</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Do not add signature delimiter</short>
- <long>Set to TRUE in case you do not want to add signature delimiter
- before your signature when composing a mail.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/width</key>
- <applyto>/apps/evolution/mail/composer/width</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>600</default>
- <locale name="C">
- <short>Composer Window default width</short>
- <long>Default width of the Composer Window.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/height</key>
- <applyto>/apps/evolution/mail/composer/height</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>500</default>
- <locale name="C">
- <short>Composer Window default height</short>
- <long>Default height of the Composer Window.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/ignore_list_reply_to</key>
- <applyto>/apps/evolution/mail/composer/ignore_list_reply_to</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Ignore list Reply-To:</short>
- <long>
- Some mailing lists set a Reply-To: header to trick users into
- sending replies to the list, even when they ask Evolution to
- make a private reply. Setting this option to TRUE will attempt
- to ignore such Reply-To: headers, so that Evolution will do
- as you ask it. If you use the private reply action, it will
- reply privately, while if you use the 'Reply to List' action
- it will do that. It works by comparing the Reply-To: header
- with a List-Post: header, if there is one.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/message_attribution</key>
- <applyto>/apps/evolution/mail/composer/message_attribution</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Attribute message.</short>
- <long>The text that is inserted when replying to a message,
- attributing the message to the original author.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/message_forward</key>
- <applyto>/apps/evolution/mail/composer/message_forward</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Forward message.</short>
- <long>The text that is inserted when forwarding a message,
- saying that the forwarded message follows.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/message_original</key>
- <applyto>/apps/evolution/mail/composer/message_original</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Original message.</short>
- <long>The text that is inserted when replying to a message (top
- posting), saying that the original message follows.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/composer/gallery_path</key>
- <applyto>/apps/evolution/mail/composer/gallery_path</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Path where picture gallery should search for its content</short>
- <long>This value can be an empty string, which means it'll use
- the system Picture folder, usually set to ~/Pictures. This folder will
- be also used when the set path is not pointing to the existent folder.</long>
- </locale>
- </schema>
-
- <!-- Display Settings -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/animated_images</key>
- <applyto>/apps/evolution/mail/display/animated_images</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show image animations</short>
- <long>Enable animated images in HTML mail. Many users find animated
- images annoying and prefer to see a static image instead.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/side_bar_search</key>
- <applyto>/apps/evolution/mail/display/side_bar_search</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Enable or disable type ahead search feature</short>
- <long>
- Enable the side bar search feature to allow interactive searching of folder names.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/no_folder_dots</key>
- <applyto>/apps/evolution/mail/display/no_folder_dots</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Disable or enable ellipsizing of folder names in side bar</short>
- <long>
- Whether disable ellipsizing feature of folder names in side bar.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/magic_spacebar</key>
- <applyto>/apps/evolution/mail/display/magic_spacebar</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Enable or disable magic space bar</short>
- <long> Enable this to use Space bar key to scroll in message preview, message list and folders.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/global_view_setting</key>
- <applyto>/apps/evolution/mail/display/global_view_setting</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Enable to use a similar message list view settings for all folders</short>
- <long> Enable to use a similar message list view settings for all folders.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/mark_citations</key>
- <applyto>/apps/evolution/mail/display/mark_citations</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Mark citations in the message "Preview"</short>
- <long>
- Mark citations in the message "Preview".
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/citation_colour</key>
- <applyto>/apps/evolution/mail/display/citation_colour</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default>#737373</default>
- <locale name="C">
- <short>Citation highlight color</short>
- <long>
- Citation highlight color.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/caret_mode</key>
- <applyto>/apps/evolution/mail/display/caret_mode</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Enable/disable caret mode</short>
- <long>
- Enable caret mode, so that you can see a cursor when reading mail.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/charset</key>
- <applyto>/apps/evolution/mail/display/charset</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Default charset in which to display messages</short>
- <long>
- Default charset in which to display messages.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/load_http_images</key>
- <applyto>/apps/evolution/mail/display/load_http_images</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Load images for HTML messages over HTTP</short>
- <long>
- Load images for HTML messages over HTTP(S). Possible values are:
- "0" - Never load images off the net.
- "1" - Load images in messages from contacts.
- "2" - Always load images off the net.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/animate_images</key>
- <applyto>/apps/evolution/mail/display/animate_images</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Show Animations</short>
- <long>
- Show animated images as animations.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/show_all_headers</key>
- <applyto>/apps/evolution/mail/display/show_all_headers</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show all message headers</short>
- <long>
- Show all the headers when viewing a messages.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/headers</key>
- <applyto>/apps/evolution/mail/display/headers</applyto>
- <owner>evolution-mail</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[]</default>
- <locale name="C">
- <short>List of custom headers and whether they are enabled.</short>
- <long>
- This key should contain a list of XML structures specifying custom headers,
- and whether they are to be displayed. The format of the XML structure is
- &lt;header enabled&gt; - set enabled if the header is to be displayed
- in the mail view.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/sender_photo</key>
- <applyto>/apps/evolution/mail/display/sender_photo</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show photo of the sender</short>
- <long>
- Show the photo of the sender in the message reading pane.
- </long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/apps/evolution/mail/display/photo_local</key>
- <applyto>/apps/evolution/mail/display/photo_local</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Search for the sender photo in local address books </short>
- <long>
- This option would help in improving the speed of fetching.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/mime_types</key>
- <applyto>/apps/evolution/mail/display/mime_types</applyto>
- <owner>evolution-mail</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[]</default>
- <locale name="C">
- <short>List of MIME types to check for Bonobo component viewers</short>
- <long>
- If there isn't a builtin viewer for a particular MIME type inside Evolution,
- any MIME types appearing in this list which map to a Bonobo component viewer
- in GNOME's MIME type database may be used for displaying content.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/mark_seen</key>
- <applyto>/apps/evolution/mail/display/mark_seen</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Mark as Seen after specified timeout</short>
- <long>
- Mark as Seen after specified timeout.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/show_email</key>
- <applyto>/apps/evolution/mail/display/show_email</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Sender email-address column in the message list</short>
- <long>
- Show the email-address of the sender in a separate column in the message list.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/vertical_view_fonts</key>
- <applyto>/apps/evolution/mail/display/vertical_view_fonts</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Determines whether to use the same fonts for both "From" and "Subject" lines in the "Messages" column in vertical view.</short>
- <long>
- Determines whether to use the same fonts for both "From" and "Subject" lines in the "Messages" column in vertical view.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/mark_seen_timeout</key>
- <applyto>/apps/evolution/mail/display/mark_seen_timeout</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>1500</default>
- <locale name="C">
- <short>Timeout for marking messages as seen</short>
- <long>
- Timeout in milliseconds for marking messages as seen.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/show_deleted</key>
- <applyto>/apps/evolution/mail/display/show_deleted</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show deleted messages in the message-list</short>
- <long>
- Show deleted messages (with a strike-through) in the message-list.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/enable_vfolders</key>
- <applyto>/apps/evolution/mail/display/enable_vfolders</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Enable search folders</short>
- <long>
- Enable search folders on startup.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/enable_local</key>
- <applyto>/apps/evolution/mail/display/enable_local</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Enable local folders</short>
- <long>
- Whether to show local folders (On This Computer) in a folder tree.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/safe_list</key>
- <applyto>/apps/evolution/mail/display/safe_list</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Hides the per-folder preview and removes the selection</short>
- <long>
- This key is read only once and reset to "false" after read. This
- unselects the mail in the list and removes the preview for that
- folder.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/paned_size</key>
- <applyto>/apps/evolution/mail/display/paned_size</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>144</default>
- <locale name="C">
- <short>Height of the message-list pane</short>
- <long>
- Height of the message-list pane.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/hpaned_size</key>
- <applyto>/apps/evolution/mail/display/hpaned_size</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>450</default>
- <locale name="C">
- <short>Width of the message-list pane</short>
- <long>
- Width of the message-list pane.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/layout</key>
- <applyto>/apps/evolution/mail/display/layout</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Layout style</short>
- <long>
- The layout style determines where to place the preview pane
- in relation to the message list. "0" (Classic View) places
- the preview pane below the message list. "1" (Vertical View)
- places the preview pane next to the message list.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/fonts/variable</key>
- <applyto>/apps/evolution/mail/display/fonts/variable</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default>Sans 12</default>
- <locale name="C">
- <short>Variable width font</short>
- <long>
- The variable width font for mail display.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/fonts/monospace</key>
- <applyto>/apps/evolution/mail/display/fonts/monospace</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default>Monospace 12</default>
- <locale name="C">
- <short>Terminal font</short>
- <long>
- The terminal font for mail display.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/fonts/use_custom</key>
- <applyto>/apps/evolution/mail/display/fonts/use_custom</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Use custom fonts</short>
- <long>
- Use custom fonts for displaying mail.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/address_compress</key>
- <applyto>/apps/evolution/mail/display/address_compress</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Compress display of addresses in TO/CC/BCC</short>
- <long>
- Compress display of addresses in TO/CC/BCC to the number
- specified in address_count.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/force_message_limit</key>
- <applyto>/apps/evolution/mail/display/force_message_limit</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Display only message texts not exceeding certain size</short>
- <long>
- Enable to display only message texts not exceeding size defined in 'message_text_part_limit' key.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/message_text_part_limit</key>
- <applyto>/apps/evolution/mail/display/message_text_part_limit</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>4096</default>
- <locale name="C">
- <short>Message text limit for display</short>
- <long>
- This decides the max size of the message text that will be displayed under
- Evolution, specified in terms of KB. The default is 4096 (4MB). This value
- is used only when 'force_message_limit' key is activated.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/address_count</key>
- <applyto>/apps/evolution/mail/display/address_count</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>5</default>
- <locale name="C">
- <short>Number of addresses to display in TO/CC/BCC</short>
- <long>
- This sets the number of addresses to show in default message list
- view, beyond which a '...' is shown.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/thread_subject</key>
- <applyto>/apps/evolution/mail/display/thread_subject</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Thread the message-list based on Subject</short>
- <long>
- Whether or not to fall back on threading by subjects when the
- messages do not contain In-Reply-To or References headers.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/thread_expand</key>
- <applyto>/apps/evolution/mail/display/thread_expand</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Default value for thread expand state</short>
- <long>
- This setting specifies whether the threads should be in expanded
- or collapsed state by default. Requires a restart to apply.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/thread_latest</key>
- <applyto>/apps/evolution/mail/display/thread_latest</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Whether sort threads based on latest message in that thread</short>
- <long>
- This setting specifies whether the threads should be sorted based
- on latest message in each thread, rather than by message's date.
- Evolution requires a restart.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/paned_view_headers_state</key>
- <applyto>/apps/evolution/mail/display/paned_view_headers_state</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>State of message headers in paned view</short>
- <long>
- Describes whether message headers in paned view should be collapsed or expanded by default.
- "0" = expanded
- "1" = collapsed
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/sort_accounts_alpha</key>
- <applyto>/apps/evolution/mail/display/sort_accounts_alpha</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Sort accounts alphabetically in a folder tree</short>
- <long>
- Tells how to sort accounts in a folder tree used in a Mail view.
- When set to true accounts are sorted alphabetically, with an exception
- of On This Computer and Search folders, otherwise accounts are
- sorted based on an order given by a user.
- </long>
- </locale>
- </schema>
-
- <!-- Mail Browser -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/mail_browser_width</key>
- <applyto>/apps/evolution/mail/mail_browser_width</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>600</default>
- <locale name="C">
- <short>Mail browser width</short>
- <long>Default width of the mail browser window.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/mail_browser_height</key>
- <applyto>/apps/evolution/mail/mail_browser_height</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>400</default>
- <locale name="C">
- <short>Mail browser height</short>
- <long>Default height of the mail browser window.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/mail_browser_maximized</key>
- <applyto>/apps/evolution/mail/mail_browser_maximized</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Mail browser maximized</short>
- <long>Default maximized state of the mail browser window.</long>
- </locale>
- </schema>
-
- <!-- Subscribe dialog -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/subscription_editor_height</key>
- <applyto>/apps/evolution/mail/subscription_editor_height</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>400</default>
- <locale name="C">
- <short>"Folder Subscriptions" window height</short>
- <long>
- Initial height of the "Folder Subscriptions" window.
- The value updates as the user resizes the window vertically.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/subscription_editor_maximized</key>
- <applyto>/apps/evolution/mail/subscription_editor_maximized</applyto>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>"Folder Subscriptions" window maximize state</short>
- <long>
- Initial maximize state of the "Folder Subscriptions" window.
- The value updates when the user maximizes or unmaximizes the
- window. Note, this particular value is not used by Evolution
- since the "Folder Subscriptions" window cannot be maximized.
- This key exists only as an implementation detail.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/subscription_editor_width</key>
- <applyto>/apps/evolution/mail/subscription_editor_width</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>600</default>
- <locale name="C">
- <short>"Folder Subscriptions" window width</short>
- <long>
- Initial width of the "Folder Subscriptions" window.
- The value updates as the user resizes the window horizontally.
- </long>
- </locale>
- </schema>
-
- <!-- Filter logging -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/filters/log</key>
- <applyto>/apps/evolution/mail/filters/log</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Log filter actions</short>
- <long>
- Log filter actions to the specified log file.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/filters/logfile</key>
- <applyto>/apps/evolution/mail/filters/logfile</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Logfile to log filter actions</short>
- <long>
- Logfile to log filter actions.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/filters/flush-outbox</key>
- <applyto>/apps/evolution/mail/filters/flush-outbox</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Flush Outbox after filtering</short>
- <long>
- Whether to flush Outbox after filtering is done. Outbox flush will happen
- only when there was used any 'Forward to' filter action and approximately
- one minute after the last action invocation.
- </long>
- </locale>
- </schema>
-
- <!-- Format settings -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/format/forward_style</key>
- <applyto>/apps/evolution/mail/format/forward_style</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Default forward style</short>
- <long>
-
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/format/reply_style</key>
- <applyto>/apps/evolution/mail/format/reply_style</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Default reply style</short>
- <long>
-
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/format/message_display_style</key>
- <applyto>/apps/evolution/mail/format/message_display_style</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Message-display style ("normal", "full headers", "source")</short>
- <long>
-
- </long>
- </locale>
- </schema>
-
- <!-- Prompt settings -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/empty_subject</key>
- <applyto>/apps/evolution/mail/prompts/empty_subject</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Prompt on empty subject</short>
- <long>
- Prompt the user when he or she tries to send a message
- without a Subject.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/expunge</key>
- <applyto>/apps/evolution/mail/prompts/expunge</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Prompt when user expunges</short>
- <long>
- Prompt the user when he or she tries to expunge a folder.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/only_bcc</key>
- <applyto>/apps/evolution/mail/prompts/only_bcc</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Prompt when user only fills Bcc</short>
- <long>
- Prompt when user tries to send a message with no To or Cc recipients.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/unwanted_html</key>
- <applyto>/apps/evolution/mail/prompts/unwanted_html</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Prompt when user tries to send unwanted HTML</short>
- <long>
- Prompt when user tries to send HTML mail to recipients that
- may not want to receive HTML mail.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/open_many</key>
- <applyto>/apps/evolution/mail/prompts/open_many</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Prompt when user tries to open 10 or more messages at once</short>
- <long>
- If a user tries to open 10 or more messages at one time, ask the user
- if they really want to do it.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/mark_all_read</key>
- <applyto>/apps/evolution/mail/prompts/mark_all_read</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Prompt while marking multiple messages</short>
- <long>
- Enable or disable the prompt whilst marking multiple messages.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/delete_in_vfolder</key>
- <applyto>/apps/evolution/mail/prompts/delete_in_vfolder</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Prompt when deleting messages in search folder</short>
- <long>
- It disables/enables the repeated prompts to warn that deleting
- messages from a search folder permanently deletes the message, not
- simply removing it from the search results.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/private_list_reply</key>
- <applyto>/apps/evolution/mail/prompts/private_list_reply</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Prompt when replying privately to list messages</short>
- <long>
- It disables/enables the repeated prompts to warn that you are
- sending a private reply to a message which arrived via a
- mailing list.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/list_reply_to</key>
- <applyto>/apps/evolution/mail/prompts/list_reply_to</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Prompt when mailing list hijacks private replies</short>
- <long>It disables/enables the repeated prompts to warn that you are trying sending a private reply to a message which arrived via a mailing list, but the list sets a Reply-To: header which redirects your reply back to the list</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/reply_many_recips</key>
- <applyto>/apps/evolution/mail/prompts/reply_many_recips</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Prompt when replying to many recipients</short>
- <long>
- It disables/enables the repeated prompts to warn that you are
- sending a reply to many people.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/reply_close_browser</key>
- <applyto>/apps/evolution/mail/prompts/reply_close_browser</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default>ask</default>
- <locale name="C">
- <short>Asks whether to close the message window when the user forwards or replies to the message shown in the window</short>
- <long>
- Possible values are:
- never - to never close browser window
- always - to always close browser window
- ask - (or any other value) will ask user
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/send_invalid_recip</key>
- <applyto>/apps/evolution/mail/prompts/send_invalid_recip</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Prompt before sending to recipients not entered as mail addresses</short>
- <long>It disables/enables the repeated prompts to warn that you are trying to send a message to recipients not entered as mail addresses</long>
- </locale>
- </schema>
-
- <!-- Trash settings -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/trash/empty_on_exit</key>
- <applyto>/apps/evolution/mail/trash/empty_on_exit</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Empty Trash folders on exit</short>
- <long>
- Empty all Trash folders when exiting Evolution.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/trash/empty_on_exit_days</key>
- <applyto>/apps/evolution/mail/trash/empty_on_exit_days</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Minimum days between emptying the trash on exit</short>
- <long>
- Minimum time between emptying the trash on exit, in days.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/trash/empty_date</key>
- <applyto>/apps/evolution/mail/trash/empty_date</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Last time Empty Trash was run</short>
- <long>
- The last time Empty Trash was run, in days since January 1st, 1970 (Epoch).
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/error_timeout</key>
- <applyto>/apps/evolution/mail/display/error_timeout</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>60</default>
- <locale name="C">
- <short>Amount of time in seconds the error should be shown on the status bar.</short>
- <long>
- Amount of time in seconds the error should be shown on the status bar.
- </long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/apps/evolution/mail/display/error_level</key>
- <applyto>/apps/evolution/mail/display/error_level</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Level beyond which the message should be logged.</short>
- <long>
- This can have three possible values. "0" for errors.
- "1" for warnings. "2" for debug messages.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/display/show_real_date</key>
- <applyto>/apps/evolution/mail/display/show_real_date</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Show original "Date" header value.</short>
- <long>
- Show the original "Date" header (with a local time only if the time zone differs).
- Otherwise always show "Date" header value in a user preferred format and local time zone.
- </long>
- </locale>
- </schema>
-
-
- <!-- Labels and Colours -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/labels</key>
- <applyto>/apps/evolution/mail/labels</applyto>
- <owner>evolution-mail</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[I_mportant:#EF2929,_Work:#F57900,_Personal:#4E9A06,_To Do:#3465A4,_Later:#75507B]</default>
- <locale name="C">
- <short>List of Labels and their associated colors</short>
- <long>
- List of labels known to the mail component of
- Evolution. The list contains strings containing name:color
- where color uses the HTML hex encoding.
- </long>
- </locale>
- </schema>
-
- <!-- Junk -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/junk/check_incoming</key>
- <applyto>/apps/evolution/mail/junk/check_incoming</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Check incoming mail being junk</short>
- <long>
- Run junk test on incoming mail.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/junk/empty_on_exit</key>
- <applyto>/apps/evolution/mail/junk/empty_on_exit</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Empty Junk folders on exit</short>
- <long>
- Empty all Junk folders when exiting Evolution.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/junk/empty_on_exit_days</key>
- <applyto>/apps/evolution/mail/junk/empty_on_exit_days</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Minimum days between emptying the junk on exit</short>
- <long>
- Minimum time between emptying the junk on exit, in days.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/junk/empty_date</key>
- <applyto>/apps/evolution/mail/junk/empty_date</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Last time Empty Junk was run</short>
- <long>
- The last time Empty Junk was run, in days since January 1st, 1970 (Epoch).
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/junk/default_plugin</key>
- <applyto>/apps/evolution/mail/junk/default_plugin</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default>Bogofilter</default>
- <locale name="C">
- <short>The default plugin for Junk hook</short>
- <long>
- This is the default junk plugin, even though there are multiple plugins
- enabled. If the default listed plugin is disabled, then it won't fall back
- to the other available plugins.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/junk/lookup_addressbook</key>
- <applyto>/apps/evolution/mail/junk/lookup_addressbook</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Determines whether to lookup in address book for sender email</short>
- <long>
- Determines whether to lookup the sender email in address book. If found, it shouldn't be a spam. It looks up in the books marked for autocompletion. It can be slow, if remote address books (like LDAP) are marked for autocompletion.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/junk/lookup_addressbook_local_only</key>
- <applyto>/apps/evolution/mail/junk/lookup_addressbook_local_only</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Determines whether to look up addresses for junk filtering in local address book only</short>
- <long>
- This option is related to the key lookup_addressbook and is used to determine whether to look up addresses in local address book only to exclude mail sent by known contacts from junk filtering.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/junk/check_custom_header</key>
- <applyto>/apps/evolution/mail/junk/check_custom_header</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Determines whether to use custom headers to check for junk</short>
- <long>
- Determines whether to use custom headers to check for junk. If this option is enabled and the headers are mentioned, it will be improve the junk checking speed.
- </long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/apps/evolution/mail/junk/custom_header</key>
- <applyto>/apps/evolution/mail/junk/custom_header</applyto>
- <owner>evolution-mail</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[X-Spam-Flag=YES,X-Spam-Level=*****]</default>
- <locale name="C">
- <short>Custom headers to use while checking for junk.</short>
- <long>
- Custom headers to use while checking for junk. The list elements
- are string in the format "headername=value".
- </long>
- </locale>
- </schema>
- <!-- Account settings -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/default_account</key>
- <applyto>/apps/evolution/mail/default_account</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>UID string of the default account.</short>
- <long>
- UID string of the default account.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/accounts</key>
- <applyto>/apps/evolution/mail/accounts</applyto>
- <owner>evolution-mail</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[]</default>
- <locale name="C">
- <short>List of accounts</short>
- <long>
- List of accounts known to the mail component of
- Evolution. The list contains strings naming
- subdirectories relative to /apps/evolution/mail/accounts.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/licenses</key>
- <applyto>/apps/evolution/mail/licenses</applyto>
- <owner>evolution-mail</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[]</default>
- <locale name="C">
- <short>List of accepted licenses</short>
- <long>
- List of protocol names whose license has been accepted.
- </long>
- </locale>
- </schema>
-
- <!-- save directory settings -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/save_dir</key>
- <applyto>/apps/evolution/mail/save_dir</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Save directory</short>
- <long>
- Directory for saving mail component files.
- </long>
- </locale>
- </schema>
-
- <!-- Widget States -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/filter_editor_height</key>
- <applyto>/apps/evolution/mail/filter_editor_height</applyto>
- <type>int</type>
- <default>650</default>
- <locale name="C">
- <short>"Filter Editor" window height</short>
- <long>
- Initial height of the "Filter Editor" window.
- The value updates as the user resizes the window vertically.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/filter_editor_maximized</key>
- <applyto>/apps/evolution/mail/filter_editor_maximized</applyto>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>"Filter Editor" window maximize state</short>
- <long>
- Initial maximize state of the "Filter Editor" window.
- The value updates when the user maximizes or unmaximizes the
- window. Note, this particular value is not used by Evolution
- since the "Filter Editor" window cannot be maximized. This
- key exists only as an implementation detail.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/filter_editor_width</key>
- <applyto>/apps/evolution/mail/filter_editor_width</applyto>
- <type>int</type>
- <default>400</default>
- <locale name="C">
- <short>"Filter Editor" window width</short>
- <long>
- Initial width of the "Filter Editor" window.
- The value updates as the user resizes the window horizontally.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/send_recv_on_start</key>
- <applyto>/apps/evolution/mail/send_recv_on_start</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Check for new messages on start</short>
- <long>
- Whether check for new messages when Evolution is started.
- This includes also sending messages from Outbox.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/send_recv_all_on_start</key>
- <applyto>/apps/evolution/mail/send_recv_all_on_start</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Check for new messages in all active accounts</short>
- <long>
- Whether check for new messages in all active accounts regardless
- of the account "Check for new messages every X minutes" option
- when Evolution is started. This option is used only together
- with 'send_recv_on_start' option.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/send_recv_height</key>
- <applyto>/apps/evolution/mail/send_recv_height</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>200</default>
- <locale name="C">
- <short>"Send and Receive Mail" window height</short>
- <long>
- Initial height of the "Send and Receive Mail" window.
- The value updates as the user resizes the window vertically.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/send_recv_maximized</key>
- <applyto>/apps/evolution/mail/send_recv_maximized</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>"Send and Receive Mail" window maximize state</short>
- <long>
- Initial maximize state of the "Send and Receive Mail" window.
- The value updates when the user maximizes or unmaximizes the
- window. Note, this particular value is not used by Evolution
- since the "Send and Receive Mail" window cannot be maximized.
- This key exists only as an implementation detail.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/send_recv_width</key>
- <applyto>/apps/evolution/mail/send_recv_width</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>600</default>
- <locale name="C">
- <short>"Send and Receive Mail" window width</short>
- <long>
- Initial width of the "Send and Receive Mail" window.
- The value updates as the user resizes the window horizontally.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/vfolder_editor_height</key>
- <applyto>/apps/evolution/mail/vfolder_editor_height</applyto>
- <type>int</type>
- <default>650</default>
- <locale name="C">
- <short>"Search Folder Editor" window height</short>
- <long>
- Initial height of the "Search Folder Editor" window.
- The value updates as the user resizes the window vertically.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/vfolder_editor_maximized</key>
- <applyto>/apps/evolution/mail/vfolder_editor_maximized</applyto>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>"Search Folder Editor" window maximize state</short>
- <long>
- Initial maximize state of the "Search Folder Editor" window.
- The value updates when the user maximizes or unmaximizes the
- window. Note, this particular value is not used by Evolution
- since the "Search Folder Editor" window cannot be maximized.
- This key exists only as an implementation detail.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/vfolder_editor_width</key>
- <applyto>/apps/evolution/mail/vfolder_editor_width</applyto>
- <type>int</type>
- <default>400</default>
- <locale name="C">
- <short>"Search Folder Editor" window width</short>
- <long>
- Initial width of the "Search Folder Editor" window.
- The value updates as the user resizes the window horizontally.
- </long>
- </locale>
- </schema>
-
- <!-- email drag'n'drop settings -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/save_file_format</key>
- <applyto>/apps/evolution/mail/save_file_format</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default>mbox</default>
- <locale name="C">
- <short>Drag'n'drop export format</short>
- <long>
- Define the email export format when doing drag'n'drop.
- Possible values are mbox or pdf
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/save_name_format</key>
- <applyto>/apps/evolution/mail/save_name_format</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>1</default>
- <locale name="C">
- <short>Format of the drag'n'drop export filename</short>
- <long>
- Exported filename will be YYYYmmDDHHMMSS_email_title
- Possible values: 1 (: email sent date), 2 (: drag'n'drop date)
- </long>
- </locale>
- </schema>
-
- <!-- Others -->
-
- <schema>
- <key>/schemas/apps/evolution/mail/sync_interval</key>
- <applyto>/apps/evolution/mail/sync_interval</applyto>
- <owner>evolution-mail</owner>
- <type>int</type>
- <default>60</default>
- <locale name="C">
- <short>Server synchronization interval</short>
- <long>
- Controls how frequently local changes are synchronized with the
- remote mail server. The interval must be at least 30 seconds.
- </long>
- </locale>
- </schema>
-
- </schemalist>
-</gconfschemafile>
diff --git a/mail/importers/elm-importer.c b/mail/importers/elm-importer.c
index bebcf97dd9..24db1041e3 100644
--- a/mail/importers/elm-importer.c
+++ b/mail/importers/elm-importer.c
@@ -36,8 +36,6 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
-#include <gconf/gconf-client.h>
-
#include "mail-importer.h"
#include "libemail-utils/mail-mt.h"
@@ -221,18 +219,6 @@ elm_import_exec (struct _elm_import_msg *m,
static void
elm_import_done (struct _elm_import_msg *m)
{
- printf("importing complete\n");
-
- if (m->base.error == NULL) {
- GConfClient *gconf;
- const gchar *key;
-
- gconf = gconf_client_get_default ();
- key = "/apps/evolution/importer/elm/mail";
- gconf_client_set_bool (gconf, key, TRUE, NULL);
- g_object_unref (gconf);
- }
-
e_import_complete (m->import, (EImportTarget *) m->target);
}
@@ -337,21 +323,14 @@ elm_getwidget (EImport *ei,
EImportImporter *im)
{
GtkWidget *box, *w;
- GConfClient *gconf;
- gboolean done_mail;
-
- gconf = gconf_client_get_default ();
- done_mail = gconf_client_get_bool (
- gconf, "/apps/evolution/importer/elm/mail", NULL);
- g_object_unref (gconf);
g_datalist_set_data (
- &target->data, "elm-do-mail", GINT_TO_POINTER(!done_mail));
+ &target->data, "elm-do-mail", GINT_TO_POINTER(TRUE));
box = gtk_vbox_new (FALSE, 2);
w = gtk_check_button_new_with_label(_("Mail"));
- gtk_toggle_button_set_active ((GtkToggleButton *) w, !done_mail);
+ gtk_toggle_button_set_active ((GtkToggleButton *) w, TRUE);
g_signal_connect (
w, "toggled",
G_CALLBACK (checkbox_toggle_cb), target);
diff --git a/mail/importers/pine-importer.c b/mail/importers/pine-importer.c
index b5dcd38cd7..dbcc488f03 100644
--- a/mail/importers/pine-importer.c
+++ b/mail/importers/pine-importer.c
@@ -36,8 +36,6 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
-#include <gconf/gconf-client.h>
-
#include <libebook/libebook.h>
#include "mail-importer.h"
@@ -291,23 +289,6 @@ pine_import_exec (struct _pine_import_msg *m,
static void
pine_import_done (struct _pine_import_msg *m)
{
- printf("importing complete\n");
-
- if (m->base.error == NULL) {
- GConfClient *gconf;
-
- gconf = gconf_client_get_default ();
- if (GPOINTER_TO_INT(g_datalist_get_data(&m->target->data, "pine-do-addr")))
- gconf_client_set_bool (
- gconf, "/apps/evolution/importer/pine/addr",
- TRUE, NULL);
- if (GPOINTER_TO_INT(g_datalist_get_data(&m->target->data, "pine-do-mail")))
- gconf_client_set_bool (
- gconf, "/apps/evolution/importer/pine/mail",
- TRUE, NULL);
- g_object_unref (gconf);
- }
-
e_import_complete (m->import, (EImportTarget *) m->target);
}
@@ -429,34 +410,25 @@ pine_getwidget (EImport *ei,
EImportImporter *im)
{
GtkWidget *box, *w;
- GConfClient *gconf;
- gboolean done_mail, done_addr;
-
- gconf = gconf_client_get_default ();
- done_mail = gconf_client_get_bool (
- gconf, "/apps/evolution/importer/pine/mail", NULL);
- done_addr = gconf_client_get_bool (
- gconf, "/apps/evolution/importer/pine/address", NULL);
- g_object_unref (gconf);
g_datalist_set_data (
&target->data, "pine-do-mail",
- GINT_TO_POINTER (!done_mail));
+ GINT_TO_POINTER (TRUE));
g_datalist_set_data (
&target->data, "pine-do-addr",
- GINT_TO_POINTER (!done_addr));
+ GINT_TO_POINTER (TRUE));
box = gtk_vbox_new (FALSE, 2);
w = gtk_check_button_new_with_label(_("Mail"));
- gtk_toggle_button_set_active ((GtkToggleButton *) w, !done_mail);
+ gtk_toggle_button_set_active ((GtkToggleButton *) w, TRUE);
g_signal_connect (
w, "toggled",
G_CALLBACK (checkbox_mail_toggle_cb), target);
gtk_box_pack_start ((GtkBox *) box, w, FALSE, FALSE, 0);
w = gtk_check_button_new_with_label(_("Address Book"));
- gtk_toggle_button_set_active ((GtkToggleButton *) w, !done_addr);
+ gtk_toggle_button_set_active ((GtkToggleButton *) w, TRUE);
g_signal_connect (
w, "toggled",
G_CALLBACK (checkbox_addr_toggle_cb), target);
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index a132327585..1670cf04c2 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -58,9 +58,6 @@
/* pseudo-uri to key the send task on */
#define SEND_URI_KEY "send-task:"
-/* Prefix for window size GConf keys */
-#define GCONF_KEY_PREFIX "/apps/evolution/mail/send_recv"
-
/* send/receive email */
/* ********************************************************************** */
diff --git a/modules/addressbook/Makefile.am b/modules/addressbook/Makefile.am
index f02d942b69..533a4bbb9a 100644
--- a/modules/addressbook/Makefile.am
+++ b/modules/addressbook/Makefile.am
@@ -82,46 +82,11 @@ module_addressbook_la_LIBADD = \
module_addressbook_la_LDFLAGS = \
-module -avoid-version $(NO_UNDEFINED)
-# GConf schemas
-
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = apps_evolution_addressbook.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
ui_DATA = \
ldap-config.ui
-DISTCLEANFILES = $(schema_DATA)
-
EXTRA_DIST = \
$(ui_DATA) \
- $(schema_in_files) \
openldap-extract.h
dist-hook:
diff --git a/modules/addressbook/apps_evolution_addressbook.schemas.in b/modules/addressbook/apps_evolution_addressbook.schemas.in
deleted file mode 100644
index cf9f098e90..0000000000
--- a/modules/addressbook/apps_evolution_addressbook.schemas.in
+++ /dev/null
@@ -1,155 +0,0 @@
-<gconfschemafile>
- <schemalist>
-
- <!-- Completion uris -->
-
- <schema>
- <key>/schemas/apps/evolution/addressbook/completion/uris</key>
- <applyto>/apps/evolution/addressbook/completion/uris</applyto>
- <owner>evolution-addressbook</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>EFolderList XML for the list of completion URIs</short>
- <long>EFolderList XML for the list of completion URIs.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/addressbook/completion/minimum_query_length</key>
- <applyto>/apps/evolution/addressbook/completion/minimum_query_length</applyto>
- <owner>evolution-addressbook</owner>
- <type>int</type>
- <default>3</default>
- <locale name="C">
- <short>Autocomplete length</short>
- <long>The number of characters that must be typed before Evolution will attempt to autocomplete.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/addressbook/completion/show_address</key>
- <applyto>/apps/evolution/addressbook/completion/show_address</applyto>
- <owner>evolution-addressbook</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show autocompleted name with an address</short>
- <long>Whether force showing the mail address with the name of the autocompleted contact in the entry.</long>
- </locale>
- </schema>
-
- <!-- Select names last used uri -->
-
- <schema>
- <key>/schemas/apps/evolution/addressbook/select_names/last_used_uri</key>
- <applyto>/apps/evolution/addressbook/select_names/last_used_uri</applyto>
- <owner>evolution-addressbook</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>URI for the folder last used in the select names dialog</short>
- <long>URI for the folder last used in the select names dialog.</long>
- </locale>
- </schema>
-
- <!-- View state -->
-
- <schema>
- <key>/schemas/apps/evolution/addressbook/display/layout</key>
- <applyto>/apps/evolution/addressbook/display/layout</applyto>
- <owner>evolution-addressbook</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Contact layout style</short>
- <long>
- The layout style determines where to place the preview pane
- in relation to the contact list. "0" (Classic View) places
- the preview pane below the contact list. "1" (Vertical View)
- places the preview pane next to the contact list.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/addressbook/display/primary_addressbook</key>
- <applyto>/apps/evolution/addressbook/display/primary_addressbook</applyto>
- <owner>evolution-addressbook</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Primary address book</short>
- <long>
- The UID of the selected (or "primary") address book in the
- sidebar of the "Contacts" view.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/addressbook/display/hpane_position</key>
- <applyto>/apps/evolution/addressbook/display/hpane_position</applyto>
- <owner>evolution-addressbook</owner>
- <type>int</type>
- <default>200</default>
- <locale name="C">
- <short>Contact preview pane position (horizontal)</short>
- <long>
- Position of the contact preview pane when oriented horizontally.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/addressbook/display/vpane_position</key>
- <applyto>/apps/evolution/addressbook/display/vpane_position</applyto>
- <owner>evolution-addressbook</owner>
- <type>int</type>
- <default>400</default>
- <locale name="C">
- <short>Contact preview pane position (vertical)</short>
- <long>
- Position of the contact preview pane when oriented vertically.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/addressbook/display/show_preview</key>
- <applyto>/apps/evolution/addressbook/display/show_preview</applyto>
- <owner>evolution-addressbook</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Show preview pane</short>
- <long>Whether to show the preview pane.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/addressbook/display/preview_show_maps</key>
- <applyto>/apps/evolution/addressbook/display/preview_show_maps</applyto>
- <owner>evolution-addressbook</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show maps</short>
- <long>Whether to show maps in preview pane.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/addressbook/display/address_formatting</key>
- <applyto>/apps/evolution/addressbook/display/address_formatting</applyto>
- <owner>evolution-addressbook</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Enable address formatting</short>
- <long>Whether addresses should be formatted according to standard in their destination country.</long>
- </locale>
- </schema>
-
- </schemalist>
-</gconfschemafile>
diff --git a/modules/backup-restore/evolution-backup-tool.c b/modules/backup-restore/evolution-backup-tool.c
index 7d1caaf948..d09efa3628 100644
--- a/modules/backup-restore/evolution-backup-tool.c
+++ b/modules/backup-restore/evolution-backup-tool.c
@@ -53,8 +53,14 @@
#define EVOLUTION "evolution"
#define EVOLUTION_DIR "$DATADIR/"
#define EVOLUTION_DIR_FILE EVOLUTION ".dir"
-#define GCONF_DUMP_FILE "backup-restore-gconf.xml"
-#define GCONF_DIR "/apps/evolution"
+
+#define ANCIENT_GCONF_DUMP_FILE "backup-restore-gconf.xml"
+
+#define DCONF_DUMP_FILE_EDS "backup-restore-dconf-eds.ini"
+#define DCONF_DUMP_FILE_EVO "backup-restore-dconf-evo.ini"
+
+#define DCONF_PATH_EDS "/org/gnome/evolution-data-server/"
+#define DCONF_PATH_EVO "/org/gnome/evolution/"
static gboolean backup_op = FALSE;
static gchar *bk_file = NULL;
@@ -313,10 +319,15 @@ backup (const gchar *filename,
return;
txt = _("Backing Evolution accounts and settings");
- run_cmd ("gconftool-2 --dump " GCONF_DIR " > " EVOLUTION_DIR GCONF_DUMP_FILE);
+ run_cmd ("dconf dump " DCONF_PATH_EDS " >" EVOLUTION_DIR DCONF_DUMP_FILE_EDS);
+ run_cmd ("dconf dump " DCONF_PATH_EVO " >" EVOLUTION_DIR DCONF_DUMP_FILE_EVO);
+
+ replace_in_file (
+ EVOLUTION_DIR DCONF_DUMP_FILE_EDS,
+ e_get_user_data_dir (), EVOUSERDATADIR_MAGIC);
replace_in_file (
- EVOLUTION_DIR GCONF_DUMP_FILE,
+ EVOLUTION_DIR DCONF_DUMP_FILE_EVO,
e_get_user_data_dir (), EVOUSERDATADIR_MAGIC);
write_dir_file ();
@@ -514,17 +525,35 @@ restore (const gchar *filename,
if (is_new_format) {
/* new format has it in DATADIR... */
- replace_in_file (
- EVOLUTION_DIR GCONF_DUMP_FILE,
- EVOUSERDATADIR_MAGIC, e_get_user_data_dir ());
- run_cmd ("gconftool-2 --load " EVOLUTION_DIR GCONF_DUMP_FILE);
- run_cmd ("rm " EVOLUTION_DIR GCONF_DUMP_FILE);
+ GString *file = replace_variables (EVOLUTION_DIR ANCIENT_GCONF_DUMP_FILE);
+ if (file && g_file_test (file->str, G_FILE_TEST_EXISTS)) {
+ /* ancient backup */
+ replace_in_file (
+ EVOLUTION_DIR ANCIENT_GCONF_DUMP_FILE,
+ EVOUSERDATADIR_MAGIC, e_get_user_data_dir ());
+ run_cmd ("gconftool-2 --load " EVOLUTION_DIR ANCIENT_GCONF_DUMP_FILE);
+ run_cmd ("rm " EVOLUTION_DIR ANCIENT_GCONF_DUMP_FILE);
+ } else {
+ replace_in_file (
+ EVOLUTION_DIR DCONF_DUMP_FILE_EDS,
+ EVOUSERDATADIR_MAGIC, e_get_user_data_dir ());
+ run_cmd ("cat " EVOLUTION_DIR DCONF_DUMP_FILE_EDS " | dconf load " DCONF_PATH_EDS);
+ run_cmd ("rm " EVOLUTION_DIR DCONF_DUMP_FILE_EDS);
+
+ replace_in_file (
+ EVOLUTION_DIR DCONF_DUMP_FILE_EVO,
+ EVOUSERDATADIR_MAGIC, e_get_user_data_dir ());
+ run_cmd ("cat " EVOLUTION_DIR DCONF_DUMP_FILE_EVO " | dconf load " DCONF_PATH_EVO);
+ run_cmd ("rm " EVOLUTION_DIR DCONF_DUMP_FILE_EVO);
+ }
+
+ g_string_free (file, TRUE);
} else {
gchar *gconf_dump_file;
/* ... old format in ~/.evolution */
gconf_dump_file = g_build_filename (
- "$HOME", ".evolution", GCONF_DUMP_FILE, NULL);
+ "$HOME", ".evolution", ANCIENT_GCONF_DUMP_FILE, NULL);
replace_in_file (
gconf_dump_file,
@@ -635,9 +664,19 @@ check (const gchar *filename,
command = g_strdup_printf (
"tar ztf %s | grep -e \"^\\.evolution/%s$\"",
- quotedfname, GCONF_DUMP_FILE);
+ quotedfname, ANCIENT_GCONF_DUMP_FILE);
result = system (command);
g_free (command);
+
+ if (result != 0) {
+ /* maybe it's an ancient backup */
+ command = g_strdup_printf (
+ "tar ztf %s | grep -e \"^\\.evolution/%s$\"",
+ quotedfname, ANCIENT_GCONF_DUMP_FILE);
+ result = system (command);
+ g_free (command);
+ }
+
g_free (quotedfname);
g_message ("Third result %d", result);
diff --git a/modules/bogofilter/Makefile.am b/modules/bogofilter/Makefile.am
index 225e2a47c7..aaa72f977d 100644
--- a/modules/bogofilter/Makefile.am
+++ b/modules/bogofilter/Makefile.am
@@ -22,38 +22,4 @@ module_bogofilter_la_LIBADD = \
module_bogofilter_la_LDFLAGS = \
-module -avoid-version $(NO_UNDEFINED)
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = evolution-bogofilter.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
-DISTCLEANFILES = $(schema_DATA)
-
-EXTRA_DIST = $(schema_in_files)
-
-include $(top_srcdir)/git.mk
diff --git a/modules/bogofilter/evolution-bogofilter.schemas.in b/modules/bogofilter/evolution-bogofilter.schemas.in
deleted file mode 100644
index e313eb9ffc..0000000000
--- a/modules/bogofilter/evolution-bogofilter.schemas.in
+++ /dev/null
@@ -1,20 +0,0 @@
-<gconfschemafile>
- <schemalist>
-
- <schema>
- <key>/schemas/apps/evolution/mail/junk/bogofilter/unicode</key>
- <applyto>/apps/evolution/mail/junk/bogofilter/unicode</applyto>
- <owner>evolution-bogofilter</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Convert mail messages to Unicode</short>
- <long>
- Convert message text to Unicode UTF-8 to unify spam/ham tokens
- coming from different character sets.
- </long>
- </locale>
- </schema>
-
- </schemalist>
-</gconfschemafile>
diff --git a/modules/calendar/Makefile.am b/modules/calendar/Makefile.am
index 43465f39fe..0bcc72cfde 100644
--- a/modules/calendar/Makefile.am
+++ b/modules/calendar/Makefile.am
@@ -102,39 +102,9 @@ module_calendar_la_LIBADD = \
module_calendar_la_LDFLAGS = \
-module -avoid-version $(NO_UNDEFINED)
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = apps_evolution_calendar.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-@INTLTOOL_SCHEMAS_RULE@
-
ui_DATA = e-calendar-preferences.ui
EXTRA_DIST = \
- $(schema_in_files) \
$(ui_DATA)
-DISTCLEANFILES = $(schema_DATA)
-
-if GCONF_SCHEMAS_INSTALL
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-endif
-
-include $(top_srcdir)/git.mk
diff --git a/modules/calendar/apps_evolution_calendar.schemas.in b/modules/calendar/apps_evolution_calendar.schemas.in
deleted file mode 100644
index c34852ed4e..0000000000
--- a/modules/calendar/apps_evolution_calendar.schemas.in
+++ /dev/null
@@ -1,839 +0,0 @@
-<gconfschemafile>
- <schemalist>
-
- <!-- Display -->
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/primary_calendar</key>
- <applyto>/apps/evolution/calendar/display/primary_calendar</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Primary calendar</short>
- <long>
- The UID of the selected (or "primary") calendar in the
- sidebar of the "Calendar" view.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/timezone</key>
- <applyto>/apps/evolution/calendar/display/timezone</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default>UTC</default>
- <locale name="C">
- <short>Timezone</short>
- <long>The default timezone to use for dates and times in the calendar, as an untranslated Olsen timezone database location like "America/New York".</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/use_system_timezone</key>
- <applyto>/apps/evolution/calendar/display/use_system_timezone</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Use system timezone</short>
- <long>Use the system timezone instead of the timezone selected
- in Evolution.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/day_second_zone</key>
- <applyto>/apps/evolution/calendar/display/day_second_zone</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>The second timezone for a Day View</short>
- <long>Shows the second time zone in a Day View, if set. Value is similar to one used in a 'timezone' key.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/day_second_zones</key>
- <applyto>/apps/evolution/calendar/display/day_second_zones</applyto>
- <owner>evolution-calendar</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[]</default>
- <locale name="C">
- <short>Recently used second time zones in a Day View</short>
- <long>List of recently used second time zones in a Day View.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/day_second_zones_max</key>
- <applyto>/apps/evolution/calendar/display/day_second_zones_max</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>5</default>
- <locale name="C">
- <short>Maximum number of recently used timezones to remember.</short>
- <long>Maximum number of recently used timezones to remember in a 'day_second_zones' list.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/use_24hour_format</key>
- <applyto>/apps/evolution/calendar/display/use_24hour_format</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Twenty four hour time format</short>
- <long>Whether to show times in twenty four hour format instead of using am/pm.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/show_role</key>
- <applyto>/apps/evolution/calendar/display/show_role</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Show Role field in the event/task/meeting editor</short>
- <long>Whether to show role field in the event/task/meeting editor</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/show_status</key>
- <applyto>/apps/evolution/calendar/display/show_status</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show status field in the event/task/meeting editor</short>
- <long>Whether to show status field in the event/task/meeting editor</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/show_type</key>
- <applyto>/apps/evolution/calendar/display/show_type</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show type field in the event/task/meeting editor</short>
- <long>Whether to show type field in the event/task/meeting editor</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/show_rsvp</key>
- <applyto>/apps/evolution/calendar/display/show_rsvp</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show RSVP field in the event/task/meeting editor</short>
- <long>Whether to show RSVP field in the event/task/meeting editor</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/show_timezone</key>
- <applyto>/apps/evolution/calendar/display/show_timezone</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show timezone field in the event/meeting editor</short>
- <long>Whether to show timezone field in the event/meeting editor</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/show_categories</key>
- <applyto>/apps/evolution/calendar/display/show_categories</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show categories field in the event/meeting/task editor</short>
- <long>Whether to show categories field in the event/meeting editor</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/week_start_day</key>
- <applyto>/apps/evolution/calendar/display/week_start_day</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>1</default>
- <locale name="C">
- <short>Week start</short>
- <long>Weekday the week starts on, from Sunday (0) to Saturday (6).</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/day_start_hour</key>
- <applyto>/apps/evolution/calendar/display/day_start_hour</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>9</default>
- <locale name="C">
- <short>Workday start hour</short>
- <long>Hour the workday starts on, in twenty four hour format, 0 to 23.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/day_start_minute</key>
- <applyto>/apps/evolution/calendar/display/day_start_minute</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Workday start minute</short>
- <long>Minute the workday starts on, 0 to 59.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/day_end_hour</key>
- <applyto>/apps/evolution/calendar/display/day_end_hour</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>17</default>
- <locale name="C">
- <short>Workday end hour</short>
- <long>Hour the workday ends on, in twenty four hour format, 0 to 23.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/day_end_minute</key>
- <applyto>/apps/evolution/calendar/display/day_end_minute</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Workday end minute</short>
- <long>Minute the workday ends on, 0 to 59.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/time_divisions</key>
- <applyto>/apps/evolution/calendar/display/time_divisions</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>30</default>
- <locale name="C">
- <short>Time divisions</short>
- <long>Intervals shown in Day and Work Week views, in minutes.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/hpane_position</key>
- <applyto>/apps/evolution/calendar/display/hpane_position</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>400</default>
- <locale name="C">
- <short>Horizontal pane position</short>
- <long>Position of the horizontal pane, between the date navigator calendar and the task list when not in the month view, in pixels.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/vpane_position</key>
- <applyto>/apps/evolution/calendar/display/vpane_position</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>150</default>
- <locale name="C">
- <short>Vertical pane position</short>
- <long>Position of the vertical pane, between the view and the date navigator calendar and task list when not in the month view, in pixels.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/month_hpane_position</key>
- <applyto>/apps/evolution/calendar/display/month_hpane_position</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>32000</default>
- <locale name="C">
- <short>Month view horizontal pane position </short>
- <long>Position of the horizontal pane, between the view and the date navigator calendar and task list in the month view, in pixels.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/month_vpane_position</key>
- <applyto>/apps/evolution/calendar/display/month_vpane_position</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>150</default>
- <locale name="C">
- <short>Month view vertical pane position </short>
- <long>Position of the vertical pane, between the view and the date navigator calendar and task list in the month view, in pixels.</long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/apps/evolution/calendar/display/date_navigator_pane_position</key>
- <applyto>/apps/evolution/calendar/display/date_navigator_pane_position</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>150</default>
- <locale name="C">
- <short>Month view vertical pane position </short>
- <long>Position of the vertical pane, between the calendar lists and the date navigator calendar.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/memo_layout</key>
- <applyto>/apps/evolution/calendar/display/memo_layout</applyto>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Memo layout style</short>
- <long>
- The layout style determines where to place the preview pane
- in relation to the memo list. "0" (Classic View) places the
- preview pane below the memo list. "1" (Vertical View) places
- the preview pane next to the memo list.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/show_memo_preview</key>
- <applyto>/apps/evolution/calendar/display/show_memo_preview</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Show the memo preview pane</short>
- <long>
- If "true", show the memo preview pane in the main window.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/memo_hpane_position</key>
- <applyto>/apps/evolution/calendar/display/memo_hpane_position</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>200</default>
- <locale name="C">
- <short>Memo preview pane position (horizontal)</short>
- <long>
- Position of the task preview pane when oriented horizontally.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/memo_vpane_position</key>
- <applyto>/apps/evolution/calendar/display/memo_vpane_position</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>400</default>
- <locale name="C">
- <short>Memo preview pane position (vertical)</short>
- <long>
- Position of the memo preview pane when oriented vertically.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/task_layout</key>
- <applyto>/apps/evolution/calendar/display/task_layout</applyto>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Task layout style</short>
- <long>
- The layout style determines where to place the preview pane
- in relation to the task list. "0" (Classic View) places the
- preview pane below the task list. "1" (Vertical View) places
- the preview pane next to the task list.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/show_task_preview</key>
- <applyto>/apps/evolution/calendar/display/show_task_preview</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Show the task preview pane</short>
- <long>
- If "true", show the task preview pane in the main window.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/task_hpane_position</key>
- <applyto>/apps/evolution/calendar/display/task_hpane_position</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>200</default>
- <locale name="C">
- <short>Task preview pane position (horizontal)</short>
- <long>
- Position of the task preview pane when oriented horizontally.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/task_vpane_position</key>
- <applyto>/apps/evolution/calendar/display/task_vpane_position</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>400</default>
- <locale name="C">
- <short>Task preview pane position (vertical)</short>
- <long>
- Position of the task preview pane when oriented vertically.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/compress_weekend</key>
- <applyto>/apps/evolution/calendar/display/compress_weekend</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Compress weekends in month view</short>
- <long>Whether to compress weekends in the month view, which puts Saturday and Sunday in the space of one weekday.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/show_event_end</key>
- <applyto>/apps/evolution/calendar/display/show_event_end</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Show appointment end times in week and month views</short>
- <long>Whether to display the end time of events in the week and month views.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/working_days</key>
- <applyto>/apps/evolution/calendar/display/working_days</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>62</default>
- <locale name="C">
- <short>Work days</short>
- <long>Days on which the start and end of work hours should be indicated.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/marcus_bains_line</key>
- <applyto>/apps/evolution/calendar/display/marcus_bains_line</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Marcus Bains Line</short>
- <long>Whether to draw the Marcus Bains Line (line at current time) in the calendar.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/marcus_bains_color_dayview</key>
- <applyto>/apps/evolution/calendar/display/marcus_bains_color_dayview</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default>#ff0000</default>
- <locale name="C">
- <short>Marcus Bains Line Color - Day View</short>
- <long>Color to draw the Marcus Bains line in the Day View.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/marcus_bains_color_timebar</key>
- <applyto>/apps/evolution/calendar/display/marcus_bains_color_timebar</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default>#ff0000</default>
- <locale name="C">
- <short>Marcus Bains Line Color - Time bar</short>
- <long>Color to draw the Marcus Bains Line in the Time bar (empty for default).</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/recur_events_italic</key>
- <applyto>/apps/evolution/calendar/display/recur_events_italic</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Recurrent Events in Italic</short>
- <long>Show days with recurrent events in italic font in bottom left calendar.</long>
- </locale>
- </schema>
-
- <!-- Memos -->
-
- <schema>
- <key>/schemas/apps/evolution/calendar/memos/primary_memos</key>
- <applyto>/apps/evolution/calendar/memos/primary_memos</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Primary memo list</short>
- <long>
- The UID of the selected (or "primary") memo list in the
- sidebar of the "Memos" view.
- </long>
- </locale>
- </schema>
-
- <!-- Tasks -->
-
- <schema>
- <key>/schemas/apps/evolution/calendar/tasks/primary_tasks</key>
- <applyto>/apps/evolution/calendar/tasks/primary_tasks</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Primary task list</short>
- <long>
- The UID of the selected (or "primary") task list in the
- sidebar of the "Tasks" view.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/tasks/hide_completed</key>
- <applyto>/apps/evolution/calendar/tasks/hide_completed</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Hide completed tasks</short>
- <long>Whether to hide completed tasks in the tasks view.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/tasks/hide_completed_units</key>
- <applyto>/apps/evolution/calendar/tasks/hide_completed_units</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default>days</default>
- <locale name="C">
- <short>Hide task units</short>
- <long>Units for determining when to hide tasks, "minutes", "hours" or "days".</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/tasks/hide_completed_value</key>
- <applyto>/apps/evolution/calendar/tasks/hide_completed_value</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>1</default>
- <locale name="C">
- <short>Hide task value</short>
- <long>Number of units for determining when to hide tasks.</long>
- </locale>
- </schema>
-
- <!-- Tasks: Colors -->
-
- <schema>
- <key>/schemas/apps/evolution/calendar/tasks/colors/due_today</key>
- <applyto>/apps/evolution/calendar/tasks/colors/due_today</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default>#1e90ff</default>
- <locale name="C">
- <short>Tasks due today color</short>
- <long>Background color of tasks that are due today, in "#rrggbb" format.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/tasks/colors/overdue</key>
- <applyto>/apps/evolution/calendar/tasks/colors/overdue</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default>#ff0000</default>
- <locale name="C">
- <short>Overdue tasks color</short>
- <long>Background color of tasks that are overdue, in "#rrggbb" format.</long>
- </locale>
- </schema>
-
- <!-- Miscellaneous -->
-
- <schema>
- <key>/schemas/apps/evolution/calendar/prompts/confirm_delete</key>
- <applyto>/apps/evolution/calendar/prompts/confirm_delete</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Ask for confirmation when deleting items</short>
- <long>Whether to ask for confirmation when deleting an appointment or task.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/prompts/confirm_purge</key>
- <applyto>/apps/evolution/calendar/prompts/confirm_purge</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Confirm expunge</short>
- <long>Whether to ask for confirmation when expunging appointments and tasks.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/other/use_default_reminder</key>
- <applyto>/apps/evolution/calendar/other/use_default_reminder</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Default appointment reminder</short>
- <long>Whether to set a default reminder for appointments.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/other/default_reminder_interval</key>
- <applyto>/apps/evolution/calendar/other/default_reminder_interval</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>15</default>
- <locale name="C">
- <short>Default reminder value</short>
- <long>Number of units for determining a default reminder.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/other/default_reminder_units</key>
- <applyto>/apps/evolution/calendar/other/default_reminder_units</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default>minutes</default>
- <locale name="C">
- <short>Default reminder units</short>
- <long>Units for a default reminder, "minutes", "hours" or "days".</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/other/use_ba_reminder</key>
- <applyto>/apps/evolution/calendar/other/use_ba_reminder</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Birthday and anniversary reminder</short>
- <long>
- Whether to set a reminder for birthdays and anniversaries.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/other/ba_reminder_interval</key>
- <applyto>/apps/evolution/calendar/other/ba_reminder_interval</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>15</default>
- <locale name="C">
- <short>Birthday and anniversary reminder value</short>
- <long>
- Number of units for determining a birthday or anniversary reminder.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/other/ba_reminder_units</key>
- <applyto>/apps/evolution/calendar/other/ba_reminder_units</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default>minutes</default>
- <locale name="C">
- <short>Birthday and anniversary reminder units</short>
- <long>
- Units for a birthday or anniversary reminder, "minutes", "hours"
- or "days".
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/show_week_numbers</key>
- <applyto>/apps/evolution/calendar/display/show_week_numbers</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show week numbers in Day View, Work Week View, and Date Navigator</short>
- <long>Whether to show week numbers in various places in the Calendar.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/month_scroll_by_week</key>
- <applyto>/apps/evolution/calendar/display/month_scroll_by_week</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Scroll Month View by a week</short>
- <long>Whether to scroll a Month View by a week, not by a month.</long>
- </locale>
- </schema>
-
- <!-- Alarm notification -->
-
- <schema>
- <key>/schemas/apps/evolution/calendar/notify/last_notification_time</key>
- <applyto>/apps/evolution/calendar/notify/last_notification_time</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>-1</default>
- <locale name="C">
- <short>Last reminder time</short>
- <long>Time the last reminder ran, in time_t.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/notify/calendars</key>
- <applyto>/apps/evolution/calendar/notify/calendars</applyto>
- <owner>evolution-calendar</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[]</default>
- <locale name="C">
- <short>Calendars to run reminders for</short>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/notify/programs</key>
- <applyto>/apps/evolution/calendar/notify/programs</applyto>
- <owner>evolution-calendar</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[]</default>
- <locale name="C">
- <short>Reminder programs</short>
- <long>Programs that are allowed to be run by reminders.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/notify/notify_with_tray</key>
- <applyto>/apps/evolution/calendar/notify/notify_with_tray</applyto>
- <owner>evolution-calendar</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Show display reminders in notification tray</short>
- <long>Whether or not to use the notification tray for display reminders.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/publish/uris</key>
- <applyto>/apps/evolution/calendar/publish/uris</applyto>
- <owner>evolution-calendar</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[]</default>
- <locale name="C">
- <short>Free/busy server URLs</short>
- <long>List of server URLs for free/busy publishing.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/publish/template</key>
- <applyto>/apps/evolution/calendar/publish/template</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Free/busy template URL</short>
- <long>The URL template to use as a free/busy data fallback, %u is replaced by the user part of the mail address and %d is replaced by the domain.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/audio_dir</key>
- <applyto>/apps/evolution/calendar/audio_dir</applyto>
- <owner>evolution-calendar</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Save directory for reminder audio</short>
- <long>
- Directory for saving reminder audio files
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/calendar/display/error_timeout</key>
- <applyto>/apps/evolution/calendar/display/error_timeout</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>60</default>
- <locale name="C">
- <short>Amount of time in seconds the error should be shown on the status bar.</short>
- <long> Amount of time in seconds the error should be shown on the status bar.
- </long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/apps/evolution/calendar/display/error_level</key>
- <applyto>/apps/evolution/calendar/display/error_level</applyto>
- <owner>evolution-calendar</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Level beyond which the message should be logged.</short>
- <long> This can have three possible values. 0 for errors. 1 for warnings.
- 2 for debug messages.
- </long>
- </locale>
- </schema>
- </schemalist>
-</gconfschemafile>
diff --git a/modules/calendar/e-cal-shell-settings.c b/modules/calendar/e-cal-shell-settings.c
index e160d18810..ade121d9c7 100644
--- a/modules/calendar/e-cal-shell-settings.c
+++ b/modules/calendar/e-cal-shell-settings.c
@@ -104,10 +104,10 @@ transform_icaltimezone_to_string (GBinding *binding,
}
static gboolean
-transform_weekdays_gconf_to_evolution (GBinding *binding,
- const GValue *source_value,
- GValue *target_value,
- gpointer user_data)
+transform_weekdays_settings_to_evolution (GBinding *binding,
+ const GValue *source_value,
+ GValue *target_value,
+ gpointer user_data)
{
GDateWeekday weekday;
@@ -119,7 +119,7 @@ transform_weekdays_gconf_to_evolution (GBinding *binding,
/* This is purposefully verbose for better readability. */
- /* GConf numbering */
+ /* setting numbering */
switch (g_value_get_int (source_value)) {
case 0:
weekday = G_DATE_SUNDAY;
@@ -177,10 +177,10 @@ transform_weekdays_gconf_to_evolution (GBinding *binding,
}
static gboolean
-transform_weekdays_evolution_to_gconf (GBinding *binding,
- const GValue *source_value,
- GValue *target_value,
- gpointer user_data)
+transform_weekdays_evolution_to_settings (GBinding *binding,
+ const GValue *source_value,
+ GValue *target_value,
+ gpointer user_data)
{
GDateWeekday weekday;
@@ -192,7 +192,7 @@ transform_weekdays_evolution_to_gconf (GBinding *binding,
/* This is purposefully verbose for better readability. */
- /* GConf numbering */
+ /* setting numbering */
switch (g_value_get_int (source_value)) {
case 0:
weekday = G_DATE_MONDAY;
@@ -692,7 +692,7 @@ e_cal_shell_backend_init_settings (EShell *shell)
/* Do not bind to this. Use "cal-week-start-day" instead. */
e_shell_settings_install_property_for_key (
- "cal-week-start-day-gconf",
+ "cal-week-start-day-setting",
CALENDAR_SCHEMA,
"week-start-day");
@@ -727,11 +727,8 @@ e_cal_shell_backend_init_settings (EShell *shell)
"prefer-new-item");
/* These properties use transform functions to convert
- * GConf values to forms more useful to Evolution. We
- * have to use separate properties because GConfBridge
- * does not support transform functions. Much of this
- * is backward-compatibility cruft for poorly designed
- * GConf schemas. */
+ * GSettings values to forms more useful to Evolution.
+ */
e_shell_settings_install_property (
g_param_spec_enum (
@@ -815,15 +812,15 @@ e_cal_shell_backend_init_settings (EShell *shell)
G_PARAM_READWRITE));
g_object_bind_property_full (
- shell_settings, "cal-week-start-day-gconf",
+ shell_settings, "cal-week-start-day-setting",
shell_settings, "cal-week-start-day",
G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE,
- transform_weekdays_gconf_to_evolution,
- transform_weekdays_evolution_to_gconf,
+ transform_weekdays_settings_to_evolution,
+ transform_weekdays_evolution_to_settings,
NULL, (GDestroyNotify) NULL);
- /* XXX These are my favorite. Storing a bit array in GConf
+ /* XXX These are my favorite. Storing a bit array in GSettings
* instead of separate boolean keys. Brilliant move. */
e_shell_settings_install_property (
diff --git a/modules/mail/e-mail-config-format-html.c b/modules/mail/e-mail-config-format-html.c
index a764e7d729..4b53d2dc28 100644
--- a/modules/mail/e-mail-config-format-html.c
+++ b/modules/mail/e-mail-config-format-html.c
@@ -32,28 +32,29 @@
static gpointer parent_class;
static void
-headers_changed_cb (GConfClient *client,
- guint cnxn_id,
- GConfEntry *entry,
+headers_changed_cb (GSettings *settings,
+ const gchar *key,
gpointer user_data)
{
- GSList *header_config_list, *p;
+ gint ii;
+ gchar **headers;
EExtension *extension;
EMailFormatter *formatter;
- g_return_if_fail (client != NULL);
+ g_return_if_fail (settings != NULL);
+
+ if (key && !g_str_equal (key, "headers"))
+ return;
extension = user_data;
formatter = E_MAIL_FORMATTER (e_extension_get_extensible (extension));
- header_config_list = gconf_client_get_list (
- client, "/apps/evolution/mail/display/headers",
- GCONF_VALUE_STRING, NULL);
+ headers = g_settings_get_strv (settings, "headers");
e_mail_formatter_clear_headers (formatter);
- for (p = header_config_list; p; p = g_slist_next (p)) {
+ for (ii = 0; headers && headers[ii]; ii++) {
EMailReaderHeader *h;
- gchar *xml = (gchar *) p->data;
+ const gchar *xml = headers[ii];
h = e_mail_reader_header_from_xml (xml);
if (h && h->enabled)
@@ -64,26 +65,10 @@ headers_changed_cb (GConfClient *client,
e_mail_reader_header_free (h);
}
- if (!header_config_list)
+ if (!headers || !headers[0])
e_mail_formatter_set_default_headers (formatter);
- g_slist_foreach (header_config_list, (GFunc) g_free, NULL);
- g_slist_free (header_config_list);
-}
-
-static void
-remove_header_notify_cb (gpointer data)
-{
- GConfClient *client;
- guint notify_id;
-
- notify_id = GPOINTER_TO_INT (data);
- g_return_if_fail (notify_id != 0);
-
- client = gconf_client_get_default ();
- gconf_client_notify_remove (client, notify_id);
- gconf_client_remove_dir (client, "/apps/evolution/mail/display", NULL);
- g_object_unref (client);
+ g_strfreev (headers);
}
static void
@@ -93,8 +78,7 @@ mail_config_format_html_constructed (GObject *object)
EExtensible *extensible;
EShellSettings *shell_settings;
EShell *shell;
- GConfClient *client;
- guint notify_id;
+ GSettings *settings;
extension = E_EXTENSION (object);
extensible = e_extension_get_extensible (extension);
@@ -140,21 +124,16 @@ mail_config_format_html_constructed (GObject *object)
G_BINDING_SYNC_CREATE);
- client = gconf_client_get_default ();
- gconf_client_add_dir (
- client, "/apps/evolution/mail/display",
- GCONF_CLIENT_PRELOAD_NONE, NULL);
- notify_id = gconf_client_notify_add (
- client, "/apps/evolution/mail/display/headers",
- (GConfClientNotifyFunc) headers_changed_cb,
- object, NULL, NULL);
+ settings = g_settings_new ("org.gnome.evolution.mail");
+ g_signal_connect (settings, "changed", G_CALLBACK (headers_changed_cb), object);
g_object_set_data_full (
- G_OBJECT (extensible), "reader-header-notify-id",
- GINT_TO_POINTER (notify_id), remove_header_notify_cb);
+ G_OBJECT (extensible), "reader-header-settings",
+ settings, g_object_unref);
+
/* Initial synchronization */
- headers_changed_cb (client, 0, NULL, object);
+ headers_changed_cb (settings, NULL, object);
/* Chain up to parent's constructed() method. */
G_OBJECT_CLASS (parent_class)->constructed (object);
diff --git a/modules/mail/e-mail-config-web-view.c b/modules/mail/e-mail-config-web-view.c
index 12e75dfbdf..2099511d62 100644
--- a/modules/mail/e-mail-config-web-view.c
+++ b/modules/mail/e-mail-config-web-view.c
@@ -79,7 +79,7 @@ mail_config_web_view_load_style (EMailConfigWebView *extension)
/* Some of our mail and composer preferences are passed down to
* GtkHtml through style properties, unfortunately. This builds
- * a style sheet for the EWebView using values from GConf. */
+ * a style sheet for the EWebView using values from GSettings. */
custom_fonts = e_shell_settings_get_boolean (
extension->shell_settings, "mail-use-custom-fonts");
diff --git a/modules/mail/e-mail-shell-settings.c b/modules/mail/e-mail-shell-settings.c
index 8243f79e3a..3b0c6b59c6 100644
--- a/modules/mail/e-mail-shell-settings.c
+++ b/modules/mail/e-mail-shell-settings.c
@@ -25,8 +25,6 @@
#include "e-mail-shell-settings.h"
-#include <gconf/gconf-client.h>
-
#include <mail/e-mail-backend.h>
#include <shell/e-shell.h>
@@ -368,13 +366,6 @@ e_mail_shell_settings_init (EShellBackend *shell_backend)
MAIL_SCHEMA,
"paned-view-headers-state");
- /* These properties use transform functions to convert
- * GConf values to forms more useful to Evolution. We
- * have to use separate properties because GConfBridge
- * does not support transform functions. Much of this
- * is backward-compatibility cruft for poorly designed
- * GConf schemas. */
-
e_shell_settings_install_property (
g_param_spec_enum (
"mail-sidebar-ellipsize",
diff --git a/modules/mail/em-composer-prefs.c b/modules/mail/em-composer-prefs.c
index 647e7892be..58700f26b1 100644
--- a/modules/mail/em-composer-prefs.c
+++ b/modules/mail/em-composer-prefs.c
@@ -208,7 +208,7 @@ spell_language_save (EMComposerPrefs *prefs)
}
spell_languages = g_list_reverse (spell_languages);
- /* Update the GConf value. */
+ /* Update the GSettings value. */
e_save_spell_languages (spell_languages);
g_list_free (spell_languages);
diff --git a/modules/mail/em-mailer-prefs.c b/modules/mail/em-mailer-prefs.c
index 9262ff8bb0..b2381b2cf2 100644
--- a/modules/mail/em-mailer-prefs.c
+++ b/modules/mail/em-mailer-prefs.c
@@ -100,7 +100,6 @@ em_mailer_prefs_finalize (GObject *object)
EMMailerPrefs *prefs = (EMMailerPrefs *) object;
g_object_unref (prefs->builder);
- g_object_unref (prefs->gconf);
g_object_unref (prefs->settings);
/* Chain up to parent's finalize() method. */
@@ -120,9 +119,6 @@ static void
em_mailer_prefs_init (EMMailerPrefs *preferences)
{
preferences->settings = g_settings_new ("org.gnome.evolution.mail");
-
- /* XXX Still need this for a little while longer. */
- preferences->gconf = gconf_client_get_default ();
}
enum {
@@ -376,12 +372,12 @@ emmp_header_add_sensitivity (EMMailerPrefs *prefs)
static void
emmp_save_headers (EMMailerPrefs *prefs)
{
- GSList *header_list;
+ GPtrArray *headers;
GtkTreeIter iter;
gboolean valid;
/* Headers */
- header_list = NULL;
+ headers = g_ptr_array_new_full (3, g_free);
valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (prefs->header_list_store), &iter);
while (valid) {
struct _EMailReaderHeader h;
@@ -397,16 +393,18 @@ emmp_save_headers (EMMailerPrefs *prefs)
h.enabled = enabled;
if ((xml = e_mail_reader_header_to_xml (&h)))
- header_list = g_slist_append (header_list, xml);
+ g_ptr_array_add (headers, xml);
g_free (h.name);
valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (prefs->header_list_store), &iter);
}
- gconf_client_set_list (prefs->gconf, "/apps/evolution/mail/display/headers", GCONF_VALUE_STRING, header_list, NULL);
- g_slist_foreach (header_list, (GFunc) g_free, NULL);
- g_slist_free (header_list);
+ g_ptr_array_add (headers, NULL);
+
+ g_settings_set_strv (prefs->settings, "headers", (const gchar * const *) headers->pdata);
+
+ g_ptr_array_free (headers, TRUE);
}
static void
@@ -706,7 +704,8 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
EMailSession *session,
EShell *shell)
{
- GSList *header_config_list, *header_add_list, *p;
+ GSList *header_add_list, *p;
+ gchar **headers_config;
EShellSettings *shell_settings;
GHashTable *default_header_hash;
GtkWidget *toplevel;
@@ -928,7 +927,7 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
G_BINDING_SYNC_CREATE);
/* headers */
- locked = !gconf_client_key_is_writable (prefs->gconf, "/apps/evolution/mail/display/headers", NULL);
+ locked = !g_settings_is_writable (prefs->settings, "headers");
widget = e_builder_get_widget (prefs->builder, "photo_show");
g_object_bind_property (
@@ -999,7 +998,7 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
NULL);
/* populated the listview with entries; firstly we add all the default headers, and then
- * we add read header configuration out of gconf. If a header in gconf is a default header,
+ * we add read header configuration out of settings. If a header in settings is a default header,
* we update the enabled flag accordingly
*/
header_add_list = NULL;
@@ -1015,31 +1014,30 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
header_add_list = g_slist_append (header_add_list, h);
}
- /* read stored headers from gconf */
- header_config_list = gconf_client_get_list (prefs->gconf, "/apps/evolution/mail/display/headers", GCONF_VALUE_STRING, NULL);
- p = header_config_list;
- while (p) {
- EMailReaderHeader *h, *def;
- gchar *xml = (gchar *) p->data;
-
- h = e_mail_reader_header_from_xml (xml);
- if (h) {
- def = g_hash_table_lookup (default_header_hash, h->name);
- if (def) {
- def->enabled = h->enabled;
- e_mail_reader_header_free (h);
- } else {
- h->is_default = FALSE;
- header_add_list = g_slist_append (header_add_list, h);
+ /* read stored headers from settings */
+ headers_config = g_settings_get_strv (prefs->settings, "headers");
+ if (headers_config) {
+ for (i = 0; headers_config[i]; i++) {
+ EMailReaderHeader *h, *def;
+ const gchar *xml = headers_config[i];
+
+ h = e_mail_reader_header_from_xml (xml);
+ if (h) {
+ def = g_hash_table_lookup (default_header_hash, h->name);
+ if (def) {
+ def->enabled = h->enabled;
+ e_mail_reader_header_free (h);
+ } else {
+ h->is_default = FALSE;
+ header_add_list = g_slist_append (header_add_list, h);
+ }
}
}
- p = p->next;
+ g_strfreev (headers_config);
}
g_hash_table_destroy (default_header_hash);
- g_slist_foreach (header_config_list, (GFunc) g_free, NULL);
- g_slist_free (header_config_list);
p = header_add_list;
while (p) {
diff --git a/modules/mail/em-mailer-prefs.h b/modules/mail/em-mailer-prefs.h
index d672d2cc9b..4466e166e8 100644
--- a/modules/mail/em-mailer-prefs.h
+++ b/modules/mail/em-mailer-prefs.h
@@ -24,7 +24,6 @@
#define EM_MAILER_PREFS_H
#include <gtk/gtk.h>
-#include <gconf/gconf-client.h>
#include <shell/e-shell.h>
#include <widgets/misc/e-preferences-window.h>
@@ -57,7 +56,6 @@ struct _EMMailerPrefs {
GtkVBox parent_object;
GtkBuilder *builder;
- GConfClient *gconf;
GSettings *settings;
/* General tab */
diff --git a/modules/mailto-handler/Makefile.am b/modules/mailto-handler/Makefile.am
index f4349cf3fb..e33a120a47 100644
--- a/modules/mailto-handler/Makefile.am
+++ b/modules/mailto-handler/Makefile.am
@@ -21,38 +21,4 @@ module_mailto_handler_la_LIBADD = \
module_mailto_handler_la_LDFLAGS = \
-module -avoid-version $(NO_UNDEFINED)
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = apps-evolution-mail-prompts-checkdefault.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
-EXTRA_DIST = $(schema_in_files)
-
-DISTCLEANFILES = $(schema_DATA)
-
-include $(top_srcdir)/git.mk
diff --git a/modules/mailto-handler/apps-evolution-mail-prompts-checkdefault.schemas.in b/modules/mailto-handler/apps-evolution-mail-prompts-checkdefault.schemas.in
deleted file mode 100644
index cdcaf7892a..0000000000
--- a/modules/mailto-handler/apps-evolution-mail-prompts-checkdefault.schemas.in
+++ /dev/null
@@ -1,16 +0,0 @@
-<gconfschemafile>
- <schemalist>
- <schema>
- <key>/schemas/apps/evolution/mail/prompts/checkdefault</key>
- <applyto>/apps/evolution/mail/prompts/checkdefault</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Check whether Evolution is the default mailer</short>
- <long>Every time Evolution starts, check whether or not it is the default mailer.</long>
- </locale>
- </schema>
- </schemalist>
-</gconfschemafile>
-
diff --git a/modules/spamassassin/Makefile.am b/modules/spamassassin/Makefile.am
index cb8f5778fa..8475660319 100644
--- a/modules/spamassassin/Makefile.am
+++ b/modules/spamassassin/Makefile.am
@@ -22,38 +22,4 @@ module_spamassassin_la_LIBADD = \
module_spamassassin_la_LDFLAGS = \
-module -avoid-version $(NO_UNDEFINED)
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = evolution-spamassassin.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
-DISTCLEANFILES = $(schema_DATA)
-
-EXTRA_DIST = $(schema_in_files)
-
-include $(top_srcdir)/git.mk
diff --git a/modules/spamassassin/evolution-spamassassin.c b/modules/spamassassin/evolution-spamassassin.c
index 7f595caf32..275e921398 100644
--- a/modules/spamassassin/evolution-spamassassin.c
+++ b/modules/spamassassin/evolution-spamassassin.c
@@ -1145,10 +1145,6 @@ e_spam_assassin_init (ESpamAssassin *extension)
extension->socket_path_mutex = g_mutex_new ();
- /* XXX Once we move to GSettings these probably don't
- * need to be properties anymore. GConfBridge is
- * just easier to deal with than GConfClient. */
-
settings = g_settings_new ("org.gnome.evolution.spamassassin");
g_settings_bind (
diff --git a/modules/spamassassin/evolution-spamassassin.schemas.in b/modules/spamassassin/evolution-spamassassin.schemas.in
deleted file mode 100644
index b344d1bffd..0000000000
--- a/modules/spamassassin/evolution-spamassassin.schemas.in
+++ /dev/null
@@ -1,33 +0,0 @@
-<gconfschemafile>
- <schemalist>
-
- <schema>
- <key>/schemas/apps/evolution/mail/junk/sa/local_only</key>
- <applyto>/apps/evolution/mail/junk/sa/local_only</applyto>
- <owner>evolution-spamassassin</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Use only local spam tests.</short>
- <long>
- Use only the local spam tests (no DNS).
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/mail/junk/sa/use_daemon</key>
- <applyto>/apps/evolution/mail/junk/sa/use_daemon</applyto>
- <owner>evolution-spamassassin</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Use SpamAssassin daemon and client</short>
- <long>
- Use SpamAssassin daemon and client (spamc/spamd).
- </long>
- </locale>
- </schema>
-
- </schemalist>
-</gconfschemafile>
diff --git a/plugins/attachment-reminder/Makefile.am b/plugins/attachment-reminder/Makefile.am
index f9801b7221..0339e01f9c 100644
--- a/plugins/attachment-reminder/Makefile.am
+++ b/plugins/attachment-reminder/Makefile.am
@@ -36,45 +36,12 @@ liborg_gnome_evolution_attachment_reminder_la_LIBADD = \
$(GNOME_PLATFORM_LIBS) \
$(GTKHTML_LIBS)
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = apps-evolution-attachment-reminder.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
EXTRA_DIST = org-gnome-evolution-attachment-reminder.eplug.xml \
- org-gnome-attachment-reminder.error.xml \
- $(schema_in_files)
+ org-gnome-attachment-reminder.error.xml
BUILT_SOURCES = org-gnome-evolution-attachment-reminder.eplug \
org-gnome-attachment-reminder.error
CLEANFILES = $(BUILT_SOURCES)
-DISTCLEANFILES = $(schema_DATA)
-
-include $(top_srcdir)/git.mk
diff --git a/plugins/attachment-reminder/apps-evolution-attachment-reminder.schemas.in b/plugins/attachment-reminder/apps-evolution-attachment-reminder.schemas.in
deleted file mode 100644
index e86ebf665d..0000000000
--- a/plugins/attachment-reminder/apps-evolution-attachment-reminder.schemas.in
+++ /dev/null
@@ -1,26 +0,0 @@
-<gconfschemafile>
- <schemalist>
- <schema>
- <key>/schemas/apps/evolution/mail/attachment_reminder_clues</key>
- <applyto>/apps/evolution/mail/attachment_reminder_clues</applyto>
- <owner>evolution-mail</owner>
- <type>list</type>
- <list_type>string</list_type>
-
- <!-- The following are the keywords used by the plugin to understand
- whether the user wanted to send a attachment. The list can have any
- number of strings.-->
-
- <default>[attachment,attaching,attached,enclosed]</default>
- <locale name="C">
- <short>List of clues for the attachment reminder plugin to look for
- in a message body</short>
- <long>
- List of clues for the attachment reminder plugin to look for
- in a message body
- </long>
- </locale>
- </schema>
- </schemalist>
-</gconfschemafile>
-
diff --git a/plugins/email-custom-header/Makefile.am b/plugins/email-custom-header/Makefile.am
index 75574a3c2a..a8d601658e 100644
--- a/plugins/email-custom-header/Makefile.am
+++ b/plugins/email-custom-header/Makefile.am
@@ -32,42 +32,11 @@ liborg_gnome_email_custom_header_la_LIBADD = \
liborg_gnome_email_custom_header_la_LDFLAGS = -module -avoid-version $(NO_UNDEFINED)
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = apps_evolution_email_custom_header.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
ui_DATA = \
org-gnome-email-custom-header.ui
EXTRA_DIST = \
org-gnome-email-custom-header.eplug.xml \
- $(schema_in_files) \
$(ui_DATA)
BUILT_SOURCES = \
@@ -75,6 +44,5 @@ BUILT_SOURCES = \
$(error_i18n)
CLEANFILES = $(BUILT_SOURCES)
-DISTCLEANFILES = $(schema_DATA)
-include $(top_srcdir)/git.mk
diff --git a/plugins/email-custom-header/apps_evolution_email_custom_header.schemas.in b/plugins/email-custom-header/apps_evolution_email_custom_header.schemas.in
deleted file mode 100644
index cb3bd97ce8..0000000000
--- a/plugins/email-custom-header/apps_evolution_email_custom_header.schemas.in
+++ /dev/null
@@ -1,17 +0,0 @@
-<gconfschemafile>
- <schemalist>
- <schema>
- <key>/schemas/apps/evolution/eplugin/email_custom_header/customHeader</key>
- <applyto>/apps/evolution/eplugin/email_custom_header/customHeader</applyto>
- <owner>evolution-eplugin</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[Security=Personal;Unclassified;Protected;InConfidence;Secret;Topsecret]</default>
- <locale name="C">
- <short>List of Custom Headers</short>
- <long>The key specifies the list of custom headers that you can add to an outgoing message. The format for specifying a Header and Header value is: Name of the custom header followed by "=" and the values separated by ";"</long>
- </locale>
- </schema>
- </schemalist>
-</gconfschemafile>
-
diff --git a/plugins/email-custom-header/email-custom-header.c b/plugins/email-custom-header/email-custom-header.c
index c0428a83a3..a88bad4815 100644
--- a/plugins/email-custom-header/email-custom-header.c
+++ b/plugins/email-custom-header/email-custom-header.c
@@ -26,7 +26,6 @@
#include <string.h>
#include <glib/gi18n.h>
-#include <gconf/gconf-client.h>
#include "mail/em-utils.h"
#include "mail/em-event.h"
#include "composer/e-msg-composer.h"
@@ -35,18 +34,19 @@
#include "email-custom-header.h"
#define d(x)
-#define GCONF_KEY_CUSTOM_HEADER "/apps/evolution/eplugin/email_custom_header/customHeader"
+
+#define ECM_SETTINGS_ID "org.gnome.evolution.plugin.email-custom-header"
+#define ECM_SETTINGS_KEY "custom-header"
#define CUSTOM_HEADER_OPTIONS_DIALOG_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
((obj), EMAIL_CUSTOM_HEADER_OPTIONS_DIALOG, CustomHeaderOptionsDialogPrivate))
typedef struct {
- GConfClient *gconf;
- GtkWidget *treeview;
- GtkWidget *header_add;
- GtkWidget *header_edit;
- GtkWidget *header_remove;
+ GtkWidget *treeview;
+ GtkWidget *header_add;
+ GtkWidget *header_edit;
+ GtkWidget *header_remove;
GtkListStore *store;
} ConfigData;
@@ -197,11 +197,15 @@ epech_dialog_run (CustomHeaderOptionsDialog *mch,
GtkWidget *parent)
{
CustomHeaderOptionsDialogPrivate *priv;
+ GSettings *settings;
GtkWidget *toplevel;
g_return_val_if_fail (mch != NULL || EMAIL_CUSTOM_HEADER_OPTIONS_IS_DIALOG (mch), FALSE);
priv = mch->priv;
- epech_get_header_list (mch);
+
+ settings = g_settings_new (ECM_SETTINGS_ID);
+ epech_load_from_settings (settings, ECM_SETTINGS_KEY, mch);
+ g_object_unref (settings);
priv->builder = gtk_builder_new ();
e_load_ui_builder_definition (
@@ -228,41 +232,26 @@ epech_dialog_run (CustomHeaderOptionsDialog *mch,
}
static void
-epech_get_header_list (CustomHeaderOptionsDialog *mch)
-{
- GConfClient *client;
-
- client = gconf_client_get_default ();
- g_return_if_fail (GCONF_IS_CLIENT (client));
- gconf_client_add_dir (client, GCONF_KEY_CUSTOM_HEADER, GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
- epech_load_from_gconf (client, "/apps/evolution/eplugin/email_custom_header/customHeader", mch);
-
- return;
-}
-
-static void
-epech_load_from_gconf (GConfClient *client,
- const gchar *path,
- CustomHeaderOptionsDialog *mch)
+epech_load_from_settings (GSettings *settings,
+ const gchar *key,
+ CustomHeaderOptionsDialog *mch)
{
CustomHeaderOptionsDialogPrivate *priv;
EmailCustomHeaderDetails temp_header_details= {-1, -1, NULL, NULL};
CustomSubHeader temp_header_value_details = {NULL};
- GSList *header_list,*q;
- gchar *buffer;
+ gchar **headers;
gint index,pos;
priv = mch->priv;
priv->email_custom_header_details = g_array_new (TRUE, TRUE, sizeof (EmailCustomHeaderDetails));
- header_list = gconf_client_get_list (client,path,GCONF_VALUE_STRING, NULL);
+ headers = g_settings_get_strv (settings, key);
- for (q = header_list,pos = 0; q != NULL; q = q->next,pos++) {
+ for (pos = 0; headers && headers[pos]; pos++) {
gchar **parse_header_list;
- memset (&temp_header_value_details,0,sizeof (CustomSubHeader));
+ memset (&temp_header_value_details, 0, sizeof (CustomSubHeader));
temp_header_details.sub_header_type_value = g_array_new (TRUE, TRUE, sizeof (CustomSubHeader));
- buffer = q->data;
- parse_header_list = g_strsplit_set (buffer, "=;,", -1);
+ parse_header_list = g_strsplit_set (headers[pos], "=;,", -1);
temp_header_details.header_type_value = g_string_new("");
if (temp_header_details.header_type_value) {
g_string_assign (temp_header_details.header_type_value, parse_header_list[0]);
@@ -283,6 +272,8 @@ epech_load_from_gconf (GConfClient *client,
}
temp_header_details.number_of_header = pos;
+
+ g_strfreev (headers);
}
static void
@@ -562,9 +553,12 @@ static void
commit_changes (ConfigData *cd)
{
GtkTreeModel *model = NULL;
- GSList *header_config_list = NULL;
+ GPtrArray *headers;
GtkTreeIter iter;
gboolean valid;
+ GSettings *settings;
+
+ headers = g_ptr_array_new_full (3, g_free);
model = gtk_tree_view_get_model (GTK_TREE_VIEW (cd->treeview));
valid = gtk_tree_model_get_iter_first (model, &iter);
@@ -580,9 +574,12 @@ commit_changes (ConfigData *cd)
/* Check if the keyword is not empty */
if ((keyword) && (g_utf8_strlen (g_strstrip (keyword), -1) > 0)) {
if ((value) && (g_utf8_strlen (g_strstrip (value), -1) > 0)) {
+ gchar *tmp = keyword;
+
keyword = g_strconcat (keyword, "=", value, NULL);
+ g_free (tmp);
}
- header_config_list = g_slist_append (header_config_list, g_strdup (keyword));
+ g_ptr_array_add (headers, g_strdup (keyword));
}
g_free (keyword);
@@ -591,10 +588,13 @@ commit_changes (ConfigData *cd)
valid = gtk_tree_model_iter_next (model, &iter);
}
- gconf_client_set_list (cd->gconf, GCONF_KEY_CUSTOM_HEADER, GCONF_VALUE_STRING, header_config_list, NULL);
+ g_ptr_array_add (headers, NULL);
+
+ settings = g_settings_new (ECM_SETTINGS_ID);
+ g_settings_set_strv (settings, ECM_SETTINGS_KEY, (const gchar * const *) headers->pdata);
+ g_object_unref (settings);
- g_slist_foreach (header_config_list, (GFunc) g_free, NULL);
- g_slist_free (header_config_list);
+ g_ptr_array_free (headers, TRUE);
}
static void
@@ -759,7 +759,6 @@ destroy_cd_data (gpointer data)
if (!cd)
return;
- g_object_unref (cd->gconf);
g_free (cd);
}
@@ -770,13 +769,11 @@ e_plugin_lib_get_configure_widget (EPlugin *epl)
GtkTreeSelection *selection;
GtkTreeIter iter;
GtkWidget *hbox;
- GSList *list;
- GSList *header_list = NULL;
+ gchar **headers;
gint index;
- gchar *buffer;
GtkTreeViewColumn *col;
gint col_pos;
- GConfClient *client = gconf_client_get_default ();
+ GSettings *settings;
ConfigData *cd = g_new0 (ConfigData, 1);
GtkWidget *ech_configuration_box;
@@ -844,8 +841,6 @@ e_plugin_lib_get_configure_widget (EPlugin *epl)
gtk_container_add (GTK_CONTAINER (vbuttonbox1), header_remove);
gtk_widget_set_can_default (header_remove, TRUE);
- cd->gconf = gconf_client_get_default ();
-
cd->treeview = header_treeview;
cd->store = gtk_list_store_new (HEADER_N_COLUMNS, G_TYPE_STRING, G_TYPE_STRING);
@@ -904,27 +899,29 @@ e_plugin_lib_get_configure_widget (EPlugin *epl)
G_CALLBACK (header_edit_clicked), cd);
gtk_widget_set_sensitive (cd->header_edit, FALSE);
- /* Populate tree view with values from gconf */
- header_list = gconf_client_get_list (client,GCONF_KEY_CUSTOM_HEADER,GCONF_VALUE_STRING, NULL);
+ /* Populate tree view with values from settings */
+ settings = g_settings_new (ECM_SETTINGS_ID);
+ headers = g_settings_get_strv (settings, ECM_SETTINGS_KEY);
+ g_object_unref (settings);
- for (list = header_list; list; list = g_slist_next (list)) {
- gchar **parse_header_list;
+ if (headers) {
+ gint ii;
- buffer = list->data;
- gtk_list_store_append (cd->store, &iter);
+ for (ii = 0; headers[ii]; ii++) {
+ gchar **parse_header_list;
- parse_header_list = g_strsplit_set (buffer, "=,", -1);
+ gtk_list_store_append (cd->store, &iter);
- gtk_list_store_set (cd->store, &iter, HEADER_KEY_COLUMN, parse_header_list[0], -1);
+ parse_header_list = g_strsplit_set (headers[ii], "=,", -1);
- for (index = 0; parse_header_list[index + 1] ; ++index) {
- gtk_list_store_set (cd->store, &iter, HEADER_VALUE_COLUMN, parse_header_list[index + 1], -1);
+ gtk_list_store_set (cd->store, &iter, HEADER_KEY_COLUMN, parse_header_list[0], -1);
+
+ for (index = 0; parse_header_list[index + 1] ; ++index) {
+ gtk_list_store_set (cd->store, &iter, HEADER_VALUE_COLUMN, parse_header_list[index + 1], -1);
+ }
}
- }
- if (header_list) {
- g_slist_foreach (header_list, (GFunc) g_free, NULL);
- g_slist_free (header_list);
+ g_strfreev (headers);
}
/* Add the list here */
diff --git a/plugins/email-custom-header/email-custom-header.h b/plugins/email-custom-header/email-custom-header.h
index 1a1c35c5a1..49c4b7432d 100644
--- a/plugins/email-custom-header/email-custom-header.h
+++ b/plugins/email-custom-header/email-custom-header.h
@@ -86,7 +86,5 @@ static guint signals[LAST_SIGNAL] = {0};
CustomHeaderOptionsDialog *epech_dialog_new (void);
static gboolean epech_dialog_run (CustomHeaderOptionsDialog *mch, GtkWidget *parent);
-static void epech_get_header_list (CustomHeaderOptionsDialog *mch);
-static void epech_load_from_gconf (GConfClient *client,const gchar *path,CustomHeaderOptionsDialog *mch);
+static void epech_load_from_settings (GSettings *settings, const gchar *path, CustomHeaderOptionsDialog *mch);
#endif
-
diff --git a/plugins/external-editor/Makefile.am b/plugins/external-editor/Makefile.am
index 070599347a..f0ffd1ac67 100644
--- a/plugins/external-editor/Makefile.am
+++ b/plugins/external-editor/Makefile.am
@@ -48,46 +48,13 @@ liborg_gnome_external_editor_la_LIBADD = \
$(GNOME_PLATFORM_LIBS) \
$(GTKHTML_LIBS)
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = apps-evolution-external-editor.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
EXTRA_DIST = \
org-gnome-external-editor.eplug.xml \
- org-gnome-external-editor.error.xml \
- $(schema_in_files)
+ org-gnome-external-editor.error.xml
BUILT_SOURCES = org-gnome-external-editor.eplug \
org-gnome-external-editor.error
CLEANFILES = $(BUILT_SOURCES)
-DISTCLEANFILES = $(schema_DATA)
-
-include $(top_srcdir)/git.mk
diff --git a/plugins/external-editor/apps-evolution-external-editor.schemas.in b/plugins/external-editor/apps-evolution-external-editor.schemas.in
deleted file mode 100644
index 0f7db301e8..0000000000
--- a/plugins/external-editor/apps-evolution-external-editor.schemas.in
+++ /dev/null
@@ -1,28 +0,0 @@
-<gconfschemafile>
- <schemalist>
- <schema>
- <key>/schemas/apps/evolution/eplugin/external-editor/editor-command</key>
- <applyto>/apps/evolution/eplugin/external-editor/editor-command</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default>gedit</default>
- <locale name="C">
- <short>Default External Editor</short>
- <long>The default command that must be used as the editor.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/eplugin/external-editor/launch-on-key-press</key>
- <applyto>/apps/evolution/eplugin/external-editor/launch-on-key-press</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Automatically launch when a new mail is edited</short>
- <long>Automatically launch editor when key is pressed in the mail composer</long>
- </locale>
- </schema>
- </schemalist>
-</gconfschemafile>
-
diff --git a/plugins/face/Makefile.am b/plugins/face/Makefile.am
index f266a410b7..0522cc0f82 100644
--- a/plugins/face/Makefile.am
+++ b/plugins/face/Makefile.am
@@ -34,18 +34,9 @@ error_DATA = org-gnome-face.error
errordir = $(privdatadir)/errors
-# GConf schemas
-
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = apps_evolution_eplugin_face.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
EXTRA_DIST = \
org-gnome-face.eplug.xml \
- org-gnome-face.error.xml \
- $(schema_in_files)
+ org-gnome-face.error.xml
BUILT_SOURCES = \
org-gnome-face.eplug \
@@ -53,30 +44,4 @@ BUILT_SOURCES = \
CLEANFILES = $(BUILT_SOURCES)
-DISTCLEANFILES = $(schema_DATA)
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
-include $(top_srcdir)/git.mk
diff --git a/plugins/face/apps_evolution_eplugin_face.schemas.in b/plugins/face/apps_evolution_eplugin_face.schemas.in
deleted file mode 100644
index 7583172f22..0000000000
--- a/plugins/face/apps_evolution_eplugin_face.schemas.in
+++ /dev/null
@@ -1,17 +0,0 @@
-<gconfschemafile>
- <schemalist>
-
- <schema>
- <key>/schemas/apps/evolution/eplugin/face/insert_by_default</key>
- <applyto>/apps/evolution/eplugin/face/insert_by_default</applyto>
- <owner>org.gnome.evolution.plugins.face</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Insert Face picture by default</short>
- <long>Whether insert Face picture to outgoing messages by default. The picture should be set before checking this, otherwise nothing happens.</long>
- </locale>
- </schema>
-
- </schemalist>
-</gconfschemafile>
diff --git a/plugins/mail-notification/Makefile.am b/plugins/mail-notification/Makefile.am
index 65b3acbdc3..042dcd0c9e 100644
--- a/plugins/mail-notification/Makefile.am
+++ b/plugins/mail-notification/Makefile.am
@@ -37,44 +37,11 @@ liborg_gnome_mail_notification_la_LIBADD = \
$(CANBERRA_LIBS) \
$(GTKHTML_LIBS)
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = apps-evolution-mail-notification.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
BUILT_SOURCES = $(plugin_DATA)
CLEANFILES = $(BUILT_SOURCES)
-DISTCLEANFILES = $(schema_DATA)
-
EXTRA_DIST = \
- org-gnome-mail-notification.eplug.xml \
- $(schema_in_files)
+ org-gnome-mail-notification.eplug.xml
-include $(top_srcdir)/git.mk
diff --git a/plugins/mail-notification/apps-evolution-mail-notification.schemas.in b/plugins/mail-notification/apps-evolution-mail-notification.schemas.in
deleted file mode 100644
index 03d742b718..0000000000
--- a/plugins/mail-notification/apps-evolution-mail-notification.schemas.in
+++ /dev/null
@@ -1,73 +0,0 @@
-<gconfschemafile>
- <schemalist>
- <schema>
- <key>/schemas/apps/evolution/eplugin/mail-notification/notify-only-inbox</key>
- <applyto>/apps/evolution/eplugin/mail-notification/notify-only-inbox</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Notify new messages for Inbox only.</short>
- <long>Whether to notify new messages in Inbox folder only.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/eplugin/mail-notification/status-enabled</key>
- <applyto>/apps/evolution/eplugin/mail-notification/status-enabled</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Enable icon in notification area.</short>
- <long>Show new mail icon in notification area when new messages arrive.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/eplugin/mail-notification/sound-enabled</key>
- <applyto>/apps/evolution/eplugin/mail-notification/sound-enabled</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Play sound when new messages arrive.</short>
- <long>Whether play sound or beep when new messages arrive.</long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/apps/evolution/eplugin/mail-notification/sound-beep</key>
- <applyto>/apps/evolution/eplugin/mail-notification/sound-beep</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Beep or play sound file.</short>
- <long>If "true", then beep, otherwise will play sound file when new messages arrive.</long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/apps/evolution/eplugin/mail-notification/sound-file</key>
- <applyto>/apps/evolution/eplugin/mail-notification/sound-file</applyto>
- <owner>evolution-mail</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Sound filename to be played.</short>
- <long>Sound file to be played when new messages arrive, if not in beep mode.</long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/apps/evolution/eplugin/mail-notification/sound-use-theme</key>
- <applyto>/apps/evolution/eplugin/mail-notification/sound-use-theme</applyto>
- <owner>evolution-mail</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Use sound theme</short>
- <long>Play themed sound when new messages arrive, if not in beep mode.</long>
- </locale>
- </schema>
- </schemalist>
-</gconfschemafile>
-
diff --git a/plugins/publish-calendar/publish-calendar.c b/plugins/publish-calendar/publish-calendar.c
index af4eb28cf7..ff9814f795 100644
--- a/plugins/publish-calendar/publish-calendar.c
+++ b/plugins/publish-calendar/publish-calendar.c
@@ -26,7 +26,6 @@
#include <string.h>
#include <gtk/gtk.h>
-#include <gconf/gconf-client.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
@@ -470,12 +469,12 @@ publish (EPublishUri *uri,
}
typedef struct {
- GConfClient *gconf;
- GtkWidget *treeview;
- GtkWidget *url_add;
- GtkWidget *url_edit;
- GtkWidget *url_remove;
- GtkWidget *url_enable;
+ GSettings *settings;
+ GtkWidget *treeview;
+ GtkWidget *url_add;
+ GtkWidget *url_edit;
+ GtkWidget *url_remove;
+ GtkWidget *url_enable;
} PublishUIData;
static void
@@ -499,9 +498,12 @@ add_timeout (EPublishUri *uri)
static void
update_timestamp (EPublishUri *uri)
{
- GConfClient *client;
- GSList *uris, *l;
+ GSettings *settings;
+ gchar **set_uris;
+ GPtrArray *uris_array;
+ gboolean found = FALSE;
gchar *xml;
+ gint ii;
guint id;
/* Remove timeout if we have one */
@@ -511,32 +513,40 @@ update_timestamp (EPublishUri *uri)
add_timeout (uri);
}
- /* Update timestamp in gconf */
+ /* Update timestamp in settings */
xml = e_publish_uri_to_xml (uri);
- client = gconf_client_get_default ();
- uris = gconf_client_get_list (client, "/apps/evolution/calendar/publish/uris", GCONF_VALUE_STRING, NULL);
- for (l = uris; l; l = g_slist_next (l)) {
- gchar *d = l->data;
- if (strcmp (d, xml) == 0) {
- uris = g_slist_remove (uris, d);
- g_free (d);
- break;
- }
- }
- g_free (xml);
-
if (uri->last_pub_time)
g_free (uri->last_pub_time);
uri->last_pub_time = g_strdup_printf ("%d", (gint) time (NULL));
- uris = g_slist_prepend (uris, e_publish_uri_to_xml (uri));
+ uris_array = g_ptr_array_new_full (3, g_free);
+ settings = g_settings_new (PC_SETTINGS_ID);
+ set_uris = g_settings_get_strv (settings, PC_SETTINGS_URIS);
+
+ for (ii = 0; set_uris && set_uris[ii]; ii++) {
+ const gchar *d = set_uris[ii];
+
+ if (!found && g_str_equal (d, xml)) {
+ found = TRUE;
+ g_ptr_array_add (uris_array, e_publish_uri_to_xml (uri));
+ } else {
+ g_ptr_array_add (uris_array, g_strdup (d));
+ }
+ }
+
+ g_strfreev (set_uris);
+ g_free (xml);
- gconf_client_set_list (client, "/apps/evolution/calendar/publish/uris", GCONF_VALUE_STRING, uris, NULL);
+ /* this should not happen, right? */
+ if (!found)
+ g_ptr_array_add (uris_array, e_publish_uri_to_xml (uri));
+ g_ptr_array_add (uris_array, NULL);
- g_slist_foreach (uris, (GFunc) g_free, NULL);
- g_slist_free (uris);
- g_object_unref (client);
+ g_settings_set_strv (settings, PC_SETTINGS_URIS, (const gchar * const *) uris_array->pdata);
+
+ g_object_unref (settings);
+ g_ptr_array_free (uris_array, TRUE);
}
static void
@@ -575,12 +585,12 @@ static void
url_list_changed (PublishUIData *ui)
{
GtkTreeModel *model = NULL;
- GSList *url_list = NULL;
+ GPtrArray *uris;
GtkTreeIter iter;
gboolean valid;
- GConfClient *client;
+ GSettings *settings;
- url_list = NULL;
+ uris = g_ptr_array_new_full (3, g_free);
model = gtk_tree_view_get_model (GTK_TREE_VIEW (ui->treeview));
valid = gtk_tree_model_get_iter_first (model, &iter);
@@ -590,15 +600,19 @@ url_list_changed (PublishUIData *ui)
gtk_tree_model_get (model, &iter, URL_LIST_URL_COLUMN, &url, -1);
- if ((xml = e_publish_uri_to_xml (url)))
- url_list = g_slist_append (url_list, xml);
+ if ((xml = e_publish_uri_to_xml (url)) != NULL)
+ g_ptr_array_add (uris, xml);
valid = gtk_tree_model_iter_next (model, &iter);
}
- client = gconf_client_get_default ();
- gconf_client_set_list (client, "/apps/evolution/calendar/publish/uris", GCONF_VALUE_STRING, url_list, NULL);
- g_slist_foreach (url_list, (GFunc) g_free, NULL);
- g_slist_free (url_list);
+
+ g_ptr_array_add (uris, NULL);
+
+ settings = g_settings_new (PC_SETTINGS_ID);
+ g_settings_set_strv (settings, PC_SETTINGS_URIS, (const gchar * const *) uris->pdata);
+ g_object_unref (settings);
+
+ g_ptr_array_free (uris, TRUE);
}
static void
@@ -926,21 +940,18 @@ publish_urls (gpointer data)
}
static gpointer
-publish_uris_set_timeout (GSList *uris)
+publish_uris_set_timeout (gchar **uris)
{
- GSList *l;
+ gint ii;
uri_timeouts = g_hash_table_new (g_direct_hash, g_direct_equal);
- l = uris;
-
- while (l) {
- gchar *xml = l->data;
+ for (ii = 0; uris && uris[ii]; ii++) {
+ const gchar *xml = uris[ii];
EPublishUri *uri = e_publish_uri_from_xml (xml);
if (!uri->location) {
g_free (uri);
- l = g_slist_next (l);
continue;
}
@@ -948,11 +959,9 @@ publish_uris_set_timeout (GSList *uris)
/* Add a timeout based on the last publish time */
add_offset_timeout (uri);
-
- l = g_slist_next (l);
}
- g_slist_foreach (uris, (GFunc) g_free, NULL);
- g_slist_free (uris);
+
+ g_strfreev (uris);
return NULL;
}
@@ -961,8 +970,6 @@ gint
e_plugin_lib_enable (EPlugin *ep,
gint enable)
{
- GSList *uris;
- GConfClient *client;
EShell *shell = e_shell_get_default ();
if (shell) {
@@ -976,17 +983,20 @@ e_plugin_lib_enable (EPlugin *ep,
}
if (enable) {
+ GSettings *settings;
+ gchar **uris;
GThread *thread = NULL;
GError *error = NULL;
- client = gconf_client_get_default ();
- uris = gconf_client_get_list (client, "/apps/evolution/calendar/publish/uris", GCONF_VALUE_STRING, NULL);
+ settings = g_settings_new (PC_SETTINGS_ID);
+ uris = g_settings_get_strv (settings, PC_SETTINGS_URIS);
+ g_object_unref (settings);
+
thread = g_thread_create ((GThreadFunc) publish_uris_set_timeout, uris, FALSE, &error);
if (!thread) {
g_warning ("Could create thread to set timeout for publishing uris : %s", error->message);
g_error_free (error);
}
- g_object_unref (client);
}
return 0;
diff --git a/plugins/publish-calendar/publish-location.c b/plugins/publish-calendar/publish-location.c
index 12fd8a3b5b..c0d46c1cd9 100644
--- a/plugins/publish-calendar/publish-location.c
+++ b/plugins/publish-calendar/publish-location.c
@@ -29,34 +29,23 @@
#include <string.h>
#include <libxml/tree.h>
-#include <gconf/gconf-client.h>
#include <libedataserverui/libedataserverui.h>
static EPublishUri *
migrateURI (const gchar *xml,
xmlDocPtr doc)
{
- GConfClient *client;
- GSList *uris, *l, *events = NULL;
+ GSettings *settings;
+ GSList *events = NULL;
+ gchar **set_uris;
+ GPtrArray *uris_array;
xmlChar *location, *enabled, *frequency, *username;
xmlNodePtr root, p;
EPublishUri *uri;
gchar *password, *temp;
EUri *euri;
-
- client = gconf_client_get_default ();
- uris = gconf_client_get_list (
- client, "/apps/evolution/calendar/publish/uris",
- GCONF_VALUE_STRING, NULL);
- l = uris;
- while (l && l->data) {
- gchar *str = l->data;
- if (strcmp (xml, str) == 0) {
- uris = g_slist_remove (uris, str);
- g_free (str);
- }
- l = g_slist_next (l);
- }
+ gint ii;
+ gboolean found = FALSE;
uri = g_new0 (EPublishUri, 1);
@@ -106,13 +95,32 @@ migrateURI (const gchar *xml,
}
uri->events = events;
- uris = g_slist_prepend (uris, e_publish_uri_to_xml (uri));
- gconf_client_set_list (
- client, "/apps/evolution/calendar/publish/uris",
- GCONF_VALUE_STRING, uris, NULL);
- g_slist_foreach (uris, (GFunc) g_free, NULL);
- g_slist_free (uris);
- g_object_unref (client);
+ uris_array = g_ptr_array_new_full (3, g_free);
+
+ settings = g_settings_new (PC_SETTINGS_ID);
+ set_uris = g_settings_get_strv (settings, PC_SETTINGS_URIS);
+
+ for (ii = 0; set_uris && set_uris[ii]; ii++) {
+ const gchar *str = set_uris[ii];
+ if (!found && g_str_equal (xml, str)) {
+ found = TRUE;
+ g_ptr_array_add (uris_array, e_publish_uri_to_xml (uri));
+ } else {
+ g_ptr_array_add (uris_array, g_strdup (str));
+ }
+ }
+
+ g_strfreev (set_uris);
+
+ /* this should not happen, right? */
+ if (!found)
+ g_ptr_array_add (uris_array, e_publish_uri_to_xml (uri));
+ g_ptr_array_add (uris_array, NULL);
+
+ g_settings_set_strv (settings, PC_SETTINGS_URIS, (const gchar * const *) uris_array->pdata);
+
+ g_ptr_array_free (uris_array, TRUE);
+ g_object_unref (settings);
cleanup:
xmlFree (location);
diff --git a/plugins/publish-calendar/publish-location.h b/plugins/publish-calendar/publish-location.h
index a55d432a8e..e70af36b2e 100644
--- a/plugins/publish-calendar/publish-location.h
+++ b/plugins/publish-calendar/publish-location.h
@@ -26,6 +26,9 @@
#include <glib.h>
+#define PC_SETTINGS_ID "org.gnome.evolution.plugin.publish-calendar"
+#define PC_SETTINGS_URIS "uris"
+
G_BEGIN_DECLS
enum publish_frequency {
diff --git a/plugins/save-calendar/rdf-format.c b/plugins/save-calendar/rdf-format.c
index b042ee0fe9..0c7d97c140 100644
--- a/plugins/save-calendar/rdf-format.c
+++ b/plugins/save-calendar/rdf-format.c
@@ -26,7 +26,6 @@
#include <string.h>
#include <glib/gi18n.h>
-#include <gconf/gconf-client.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
diff --git a/plugins/templates/Makefile.am b/plugins/templates/Makefile.am
index c899a44368..d4a637d0c3 100644
--- a/plugins/templates/Makefile.am
+++ b/plugins/templates/Makefile.am
@@ -29,43 +29,10 @@ liborg_gnome_templates_la_LIBADD = \
$(GNOME_PLATFORM_LIBS) \
$(GTKHTML_LIBS)
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = apps-evolution-template-placeholders.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
-EXTRA_DIST = org-gnome-templates.eplug.xml \
- $(schema_in_files)
+EXTRA_DIST = org-gnome-templates.eplug.xml
BUILT_SOURCES = org-gnome-templates.eplug
CLEANFILES = $(BUILT_SOURCES)
-DISTCLEANFILES = $(schema_DATA)
-
-include $(top_srcdir)/git.mk
diff --git a/plugins/templates/apps-evolution-template-placeholders.schemas.in b/plugins/templates/apps-evolution-template-placeholders.schemas.in
deleted file mode 100644
index c6a1f4d07d..0000000000
--- a/plugins/templates/apps-evolution-template-placeholders.schemas.in
+++ /dev/null
@@ -1,26 +0,0 @@
-<gconfschemafile>
- <schemalist>
- <schema>
- <key>/schemas/apps/evolution/mail/template_placeholders</key>
- <applyto>/apps/evolution/mail/template_placeholders</applyto>
- <owner>evolution-mail</owner>
- <type>list</type>
- <list_type>string</list_type>
-
- <!-- The following are the keyword/value pairs used by the plugin to
- substitute the messages stored under the Templates folder. The list can
- have any number of such pairs.-->
-
- <default>[myphone=012345,myplace=Abcd,myname=Alice]</default>
- <locale name="C">
- <short>List of keyword/value pairs for the Templates plugin to
- substitute in a message body.</short>
- <long>
- List of keyword/value pairs for the Templates plugin to
- substitute in a message body.
- </long>
- </locale>
- </schema>
- </schemalist>
-</gconfschemafile>
-
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 837dbd5cf1..2b95bb98d8 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -150,6 +150,7 @@ data/org.gnome.evolution.plugin.face-picture.gschema.xml.in
data/org.gnome.evolution.plugin.itip.gschema.xml.in
data/org.gnome.evolution.plugin.mail-notification.gschema.xml.in
data/org.gnome.evolution.plugin.prefer-plain.gschema.xml.in
+data/org.gnome.evolution.plugin.publish-calendar.gschema.xml.in
data/org.gnome.evolution.plugin.templates.gschema.xml.in
data/org.gnome.evolution.shell.gschema.xml.in
data/org.gnome.evolution.spamassassin.gschema.xml.in
@@ -259,7 +260,6 @@ mail/em-subscription-editor.c
mail/em-utils.c
mail/em-vfolder-editor.c
mail/em-vfolder-editor-rule.c
-mail/evolution-mail.schemas.in
mail/importers/elm-importer.c
mail/importers/evolution-mbox-importer.c
mail/importers/mail-importer.c
@@ -273,7 +273,6 @@ mail/mail-vfolder-ui.c
mail/message-list.c
mail/message-list.etspec
mail/searchtypes.xml
-modules/addressbook/apps_evolution_addressbook.schemas.in
modules/addressbook/autocompletion-config.c
modules/addressbook/eab-composer-util.c
modules/addressbook/e-book-shell-backend.c
@@ -290,7 +289,6 @@ modules/backup-restore/evolution-backup-restore.c
modules/backup-restore/evolution-backup-tool.c
modules/backup-restore/org-gnome-backup-restore.error.xml
modules/bogofilter/evolution-bogofilter.c
-modules/bogofilter/evolution-bogofilter.schemas.in
modules/book-config-google/evolution-book-config-google.c
modules/book-config-ldap/evolution-book-config-ldap.c
modules/book-config-webdav/evolution-book-config-webdav.c
@@ -305,7 +303,6 @@ modules/cal-config-google/evolution-cal-config-google.c
modules/cal-config-local/evolution-cal-config-local.c
modules/cal-config-weather/evolution-cal-config-weather.c
modules/cal-config-webcal/evolution-cal-config-webcal.c
-modules/calendar/apps_evolution_calendar.schemas.in
modules/calendar/e-cal-attachment-handler.c
modules/calendar/e-calendar-preferences.c
[type: gettext/glade]modules/calendar/e-calendar-preferences.ui
@@ -352,7 +349,6 @@ modules/mail/e-mail-shell-view.c
modules/mail/e-mail-shell-view-private.c
modules/mail/em-composer-prefs.c
modules/mail/em-mailer-prefs.c
-modules/mailto-handler/apps-evolution-mail-prompts-checkdefault.schemas.in
modules/mailto-handler/evolution-mailto-handler.c
modules/mdn/evolution-mdn.c
modules/mdn/evolution-mdn.error.xml
@@ -365,7 +361,6 @@ modules/prefer-plain/e-mail-parser-prefer-plain.c
modules/prefer-plain/plugin/config-ui.c
modules/prefer-plain/plugin/org-gnome-prefer-plain.eplug.xml
modules/spamassassin/evolution-spamassassin.c
-modules/spamassassin/evolution-spamassassin.schemas.in
modules/startup-wizard/e-mail-config-import-page.c
modules/startup-wizard/e-mail-config-import-progress-page.c
modules/startup-wizard/e-startup-assistant.c
@@ -374,7 +369,6 @@ modules/text-highlight/text-highlight.c
modules/vcard-inline/e-mail-formatter-vcard-inline.c
modules/vcard-inline/e-mail-parser-vcard-inline.c
modules/web-inspector/evolution-web-inspector.c
-plugins/attachment-reminder/apps-evolution-attachment-reminder.schemas.in
plugins/attachment-reminder/attachment-reminder.c
plugins/attachment-reminder/org-gnome-attachment-reminder.error.xml
plugins/attachment-reminder/org-gnome-evolution-attachment-reminder.eplug.xml
@@ -382,15 +376,12 @@ plugins/bbdb/bbdb.c
plugins/bbdb/org-gnome-evolution-bbdb.eplug.xml
plugins/dbx-import/dbx-importer.c
plugins/dbx-import/org-gnome-dbx-import.eplug.xml
-plugins/email-custom-header/apps_evolution_email_custom_header.schemas.in
plugins/email-custom-header/email-custom-header.c
plugins/email-custom-header/org-gnome-email-custom-header.eplug.xml
[type: gettext/glade]plugins/email-custom-header/org-gnome-email-custom-header.ui
-plugins/external-editor/apps-evolution-external-editor.schemas.in
plugins/external-editor/external-editor.c
plugins/external-editor/org-gnome-external-editor.eplug.xml
plugins/external-editor/org-gnome-external-editor.error.xml
-plugins/face/apps_evolution_eplugin_face.schemas.in
plugins/face/face.c
plugins/face/org-gnome-face.eplug.xml
plugins/face/org-gnome-face.error.xml
@@ -398,7 +389,6 @@ plugins/image-inline/org-gnome-image-inline.eplug.xml
plugins/mailing-list-actions/mailing-list-actions.c
plugins/mailing-list-actions/org-gnome-mailing-list-actions.eplug.xml
plugins/mailing-list-actions/org-gnome-mailing-list-actions.error.xml
-plugins/mail-notification/apps-evolution-mail-notification.schemas.in
plugins/mail-notification/mail-notification.c
plugins/mail-notification/org-gnome-mail-notification.eplug.xml
plugins/mail-to-task/mail-to-task.c
@@ -418,10 +408,8 @@ plugins/save-calendar/ical-format.c
plugins/save-calendar/org-gnome-save-calendar.eplug.xml
plugins/save-calendar/rdf-format.c
plugins/save-calendar/save-calendar.c
-plugins/templates/apps-evolution-template-placeholders.schemas.in
plugins/templates/org-gnome-templates.eplug.xml
plugins/templates/templates.c
-shell/apps_evolution_shell.schemas.in
shell/e-shell-backend.c
shell/e-shell.c
shell/e-shell-content.c
diff --git a/shell/Makefile.am b/shell/Makefile.am
index 9259d63db9..9edfe88cd6 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -62,7 +62,6 @@ libeshell_la_CPPFLAGS = \
$(GNOME_PLATFORM_CFLAGS) \
$(EGG_SMCLIENT_CFLAGS) \
$(GTKHTML_CFLAGS) \
- $(DBUS_GLIB_CFLAGS) \
$(CLUTTER_CFLAGS)
libeshell_la_SOURCES = \
@@ -101,7 +100,6 @@ libeshell_la_LIBADD = \
$(EVOLUTION_DATA_SERVER_LIBS) \
$(GNOME_PLATFORM_LIBS) \
$(EGG_SMCLIENT_LIBS) \
- $(DBUS_GLIB_LIBS) \
$(CLUTTER_LIBS)
# Evolution executable
@@ -185,43 +183,10 @@ error_DATA = shell.error
errordir = $(privdatadir)/errors
@EVO_PLUGIN_RULE@
-# GConf schemas
-
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_in_files = apps_evolution_shell.schemas.in
-schema_DATA = $(schema_in_files:.schemas.in=.schemas)
-
-@INTLTOOL_SCHEMAS_RULE@
-
-if GCONF_SCHEMAS_INSTALL
-
-if OS_WIN32
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- (echo set GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE); \
- echo $(GCONFTOOL) --makefile-install-rule $$p) >_temp.bat; \
- cmd /c _temp.bat; \
- rm _temp.bat; \
- done \
- fi
-else
-install-data-local:
- if test -z "$(DESTDIR)" ; then \
- for p in $(schema_DATA) ; do \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
- $(GCONFTOOL) --makefile-install-rule $$p; \
- done \
- fi
-endif
-
-endif
-
# Extra dist stuff
EXTRA_DIST = \
shell.error.xml \
- $(schema_in_files) \
evolution-nognome.in \
evolution-icon.rc \
evolution.ico \
@@ -246,8 +211,6 @@ endif
BUILT_SOURCES = $(error_DATA) $(ENUM_GENERATED)
CLEANFILES = $(BUILT_SOURCES)
-DISTCLEANFILES = $(schema_DATA)
-
dist-hook:
cd $(distdir); rm -f $(BUILT_SOURCES)
diff --git a/shell/apps_evolution_shell.schemas.in b/shell/apps_evolution_shell.schemas.in
deleted file mode 100644
index 20e7af463d..0000000000
--- a/shell/apps_evolution_shell.schemas.in
+++ /dev/null
@@ -1,408 +0,0 @@
-<gconfschemafile>
- <schemalist>
-
- <!-- Evolution config version -->
-
- <schema>
- <key>/schemas/apps/evolution/version</key>
- <applyto>/apps/evolution/version</applyto>
- <owner>evolution</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Configuration version</short>
- <long>The configuration version of Evolution, with major/minor/configuration level (for example "2.6.0").</long>
- </locale>
- </schema>
-
- <!-- last upgraded-from version, if still present -->
-
- <schema>
- <key>/schemas/apps/evolution/last_version</key>
- <applyto>/apps/evolution/last_version</applyto>
- <owner>evolution</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Last upgraded configuration version</short>
- <long>The last upgraded configuration version of Evolution, with major/minor/configuration level (for example "2.6.0").</long>
- </locale>
- </schema>
-
- <!-- Development warning dialog -->
-
- <schema>
- <key>/schemas/apps/evolution/shell/skip_warning_dialog</key>
- <applyto>/apps/evolution/shell/skip_warning_dialog</applyto>
- <owner>evolution</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Skip development warning dialog</short>
- <long>Whether the warning dialog in development versions of Evolution is skipped.</long>
- </locale>
- </schema>
-
- <!-- Initial attachment view (icon or list) -->
-
- <schema>
- <key>/schemas/apps/evolution/shell/attachment_view</key>
- <applyto>/apps/evolution/shell/attachment_view</applyto>
- <owner>evolution</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Initial attachment view</short>
- <long>Initial view for attachment bar widgets.
- "0" is Icon View, "1" is List View.</long>
- </locale>
- </schema>
-
- <!-- Offline Mode -->
-
- <schema>
- <key>/schemas/apps/evolution/shell/start_offline</key>
- <applyto>/apps/evolution/shell/start_offline</applyto>
- <owner>evolution</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Start in offline mode</short>
- <long> Whether Evolution will start up in offline mode instead of online mode.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/offline/folder_paths</key>
- <applyto>/apps/evolution/shell/offline/folder_paths</applyto>
- <owner>evolution</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[]</default>
- <locale name="C">
- <short>List of paths for the folders to be synchronized to disk for offline usage</short>
- </locale>
- </schema>
-
- <!-- View defaults -->
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/window_y</key>
- <applyto>/apps/evolution/shell/view_defaults/window_y</applyto>
- <owner>evolution</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Default window Y coordinate</short>
- <long>The default Y coordinate for the main window.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/window_x</key>
- <applyto>/apps/evolution/shell/view_defaults/window_x</applyto>
- <owner>evolution</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Default window X coordinate</short>
- <long>The default X coordinate for the main window.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/window_width</key>
- <applyto>/apps/evolution/shell/view_defaults/window_width</applyto>
- <owner>evolution</owner>
- <type>int</type>
- <default>640</default>
- <locale name="C">
- <short>Default window width</short>
- <long>The default width for the main window, in pixels.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/window_height</key>
- <applyto>/apps/evolution/shell/view_defaults/window_height</applyto>
- <owner>evolution</owner>
- <type>int</type>
- <default>480</default>
- <locale name="C">
- <short>Default window height</short>
- <long>The default height for the main window, in pixels.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/window_maximized</key>
- <applyto>/apps/evolution/shell/view_defaults/window_maximized</applyto>
- <owner>evolution</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Default window state</short>
- <long>Whether or not the window should be maximized.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/buttons_visible</key>
- <applyto>/apps/evolution/shell/view_defaults/buttons_visible</applyto>
- <owner>evolution</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Window buttons are visible</short>
- <long>Whether the window buttons should be visible.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/buttons_style</key>
- <applyto>/apps/evolution/shell/view_defaults/buttons_style</applyto>
- <owner>evolution</owner>
- <type>string</type>
- <default>toolbar</default>
- <locale name="C">
- <short>Window button style</short>
- <long>The style of the window buttons. Can be "text", "icons", "both", "toolbar". If "toolbar" is set, the style of the buttons is determined by the GNOME toolbar setting.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/toolbar_visible</key>
- <applyto>/apps/evolution/shell/view_defaults/toolbar_visible</applyto>
- <owner>evolution</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Toolbar is visible</short>
- <long>Whether the toolbar should be visible.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/sidebar_visible</key>
- <applyto>/apps/evolution/shell/view_defaults/sidebar_visible</applyto>
- <owner>evolution</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Sidebar is visible</short>
- <long>Whether the sidebar should be visible.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/statusbar_visible</key>
- <applyto>/apps/evolution/shell/view_defaults/statusbar_visible</applyto>
- <owner>evolution</owner>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Statusbar is visible</short>
- <long>Whether the status bar should be visible.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/component_id</key>
- <applyto>/apps/evolution/shell/view_defaults/component_id</applyto>
- <owner>evolution</owner>
- <type>string</type>
- <default>mail</default>
- <locale name="C">
- <short>ID or alias of the component to be shown by default at start-up.</short>
- <long>ID or alias of the component to be shown by default at start-up.</long>
- </locale>
- </schema>
-
- <!-- Folder bar -->
-
- <schema>
- <key>/schemas/apps/evolution/shell/view_defaults/folder_bar/width</key>
- <applyto>/apps/evolution/shell/view_defaults/folder_bar/width</applyto>
- <owner>evolution</owner>
- <type>int</type>
- <default>200</default>
- <locale name="C">
- <short>Default sidebar width</short>
- <long>The default width for the sidebar, in pixels.</long>
- </locale>
- </schema>
-
- <!-- Network config defaults -->
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/proxy_type</key>
- <applyto>/apps/evolution/shell/network_config/proxy_type</applyto>
- <owner>evolution</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Proxy configuration mode</short>
- <long>Select the proxy configuration mode. Supported values are 0, 1, 2, and 3 representing "use system settings", "no proxy", "use manual proxy configuration" and "use proxy configuration provided in the autoconfig url" respectively.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/http_port</key>
- <applyto>/apps/evolution/shell/network_config/http_port</applyto>
- <owner>evolution</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>HTTP proxy port</short>
- <long>The port on the machine defined by "/apps/evolution/shell/network_config/http_host" that you proxy through.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/http_host</key>
- <applyto>/apps/evolution/shell/network_config/http_host</applyto>
- <owner>evolution</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>HTTP proxy host name</short>
- <long>The machine name to proxy HTTP through.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/secure_port</key>
- <applyto>/apps/evolution/shell/network_config/secure_port</applyto>
- <owner>evolution</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>Secure HTTP proxy port</short>
- <long>The port on the machine defined by "/apps/evolution/shell/network_config/secure_host" that you proxy through.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/secure_host</key>
- <applyto>/apps/evolution/shell/network_config/secure_host</applyto>
- <owner>evolution</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Secure HTTP proxy host name</short>
- <long>The machine name to proxy secure HTTP through.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/socks_port</key>
- <applyto>/apps/evolution/shell/network_config/socks_port</applyto>
- <owner>evolution</owner>
- <type>int</type>
- <default>0</default>
- <locale name="C">
- <short>SOCKS proxy port</short>
- <long>The port on the machine defined by "/apps/evolution/shell/network_config/socks_host" that you proxy through.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/socks_host</key>
- <applyto>/apps/evolution/shell/network_config/socks_host</applyto>
- <owner>evolution</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>SOCKS proxy host name</short>
- <long>The machine name to proxy socks through.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/use_http_proxy</key>
- <applyto>/apps/evolution/shell/network_config/use_http_proxy</applyto>
- <owner>evolution</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Use HTTP proxy</short>
- <long>Enables the proxy settings when accessing HTTP/Secure HTTP over the Internet.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/use_authentication</key>
- <applyto>/apps/evolution/shell/network_config/use_authentication</applyto>
- <owner>evolution</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Authenticate proxy server connections</short>
- <long>If true, then connections to the proxy server require authentication. The username is retrieved from the "/apps/evolution/shell/network_config/authentication_user" GConf key, and the password is retrieved from either gnome-keyring or the ~/.gnome2_private/Evolution password file.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/authentication_user</key>
- <applyto>/apps/evolution/shell/network_config/authentication_user</applyto>
- <owner>evolution</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>HTTP proxy username</short>
- <long>Username to pass as authentication when doing HTTP proxying.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/authentication_password</key>
- <applyto>/apps/evolution/shell/network_config/authentication_password</applyto>
- <owner>evolution</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>HTTP proxy password</short>
- <long>Password to pass as authentication when doing HTTP proxying.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/ignore_hosts</key>
- <applyto>/apps/evolution/shell/network_config/ignore_hosts</applyto>
- <owner>evolution</owner>
- <type>list</type>
- <list_type>string</list_type>
- <default>[]</default>
- <locale name="C">
- <short>Non-proxy hosts</short>
- <long>This key contains a list of hosts which are connected to directly, rather than via the proxy (if it is active). The values can be hostnames, domains (using an initial wildcard like *.foo.com), IP host addresses (both IPv4 and IPv6) and network addresses with a netmask (something like 192.168.0.0/24).</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/network_config/autoconfig_url</key>
- <applyto>/apps/evolution/shell/network_config/autoconfig_url</applyto>
- <owner>evolution</owner>
- <type>string</type>
- <default></default>
- <locale name="C">
- <short>Automatic proxy configuration URL</short>
- <long>URL that provides proxy configuration values.</long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/apps/evolution/shell/express_mode</key>
- <applyto>/apps/evolution/shell/express_mode</applyto>
- <owner>evolution</owner>
- <type>bool</type>
- <default>false</default>
- <locale name="C">
- <short>Enable express mode</short>
- <long>Flag that enables a much simplified user interface.</long>
- </locale>
- </schema>
-
- </schemalist>
-</gconfschemafile>
diff --git a/shell/e-shell-migrate.c b/shell/e-shell-migrate.c
index d746aeff54..2fe9cd69ee 100644
--- a/shell/e-shell-migrate.c
+++ b/shell/e-shell-migrate.c
@@ -744,7 +744,7 @@ shell_migrate_get_version (EShell *shell,
string = g_settings_get_string (settings, "version");
if (string != NULL) {
- /* Since 1.4.0 we've kept the version key in GConf. */
+ /* Since 1.4.0 we've kept the version key in GSettings. */
sscanf (string, "%d.%d.%d", major, minor, micro);
g_free (string);
}
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c
index 293a39b645..bfc1ca9557 100644
--- a/shell/e-shell-window-actions.c
+++ b/shell/e-shell-window-actions.c
@@ -2359,7 +2359,7 @@ e_shell_window_update_search_menu (EShellWindow *shell_window)
shell_view = e_shell_window_get_shell_view (shell_window, view_name);
/* Check for a NULL shell view before proceeding. This can
- * happen if the initial view name from GConf is unrecognized.
+ * happen if the initial view name from GSettings is unrecognized.
* Without this we would crash at E_SHELL_VIEW_GET_CLASS(). */
g_return_if_fail (shell_view != NULL);
diff --git a/shell/e-shell-window.c b/shell/e-shell-window.c
index ee87446209..abc3d085fd 100644
--- a/shell/e-shell-window.c
+++ b/shell/e-shell-window.c
@@ -1030,9 +1030,9 @@ e_shell_window_init (EShellWindow *shell_window)
* #EShellWindow into "safe mode" if detects the previous Evolution
* session crashed.
*
- * The initial view for the window is determined by GConf key
- * <filename>/apps/evolution/shell/view_defaults/component_id</filename>.
- * Or, if the GConf key is not set or can't be read, the first view
+ * The initial view for the window is determined by GSettings key
+ * <filename>/org/gnome/evolution/shell/default-component-id</filename>.
+ * Or, if the GSettings key is not set or can't be read, the first view
* in the switcher is used.
*
* Returns: a new #EShellWindow
@@ -1326,8 +1326,8 @@ e_shell_window_get_active_view (EShellWindow *shell_window)
* the entire content of @shell_window to change. This is typically
* called as a result of the user clicking one of the switcher buttons.
*
- * The name of the newly activated shell view is also written to GConf key
- * <filename>/apps/evolution/shell/view_defaults/component_id</filename>.
+ * The name of the newly activated shell view is also written to GSettings key
+ * <filename>/org/gnome/evolution/shell/default-component-id</filename>.
* This makes the active shell view persistent across Evolution sessions.
* It also causes new shell windows created within the current Evolution
* session to open to the most recently selected shell view.
diff --git a/shell/e-shell.c b/shell/e-shell.c
index ae8abb2a50..7ab685ab27 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -1239,7 +1239,7 @@ e_shell_init (EShell *shell)
G_CALLBACK (shell_notify_online_cb), NULL);
/* XXX Do this after creating the EShellSettings instance,
- * otherwise the GConf bindings will not get set up. */
+ * otherwise the GSettings bindings will not get set up. */
e_shell_settings_install_property_for_key (
"start-offline",
@@ -1474,7 +1474,7 @@ e_shell_create_shell_window (EShell *shell,
view_name = e_shell_get_canonical_name (shell, view_name);
- /* EShellWindow initializes its active view from a GConf key,
+ /* EShellWindow initializes its active view from a GSetting key,
* so set the key ahead of time to control the intial view. */
if (view_name != NULL) {
GSettings *settings;
diff --git a/shell/main.c b/shell/main.c
index 521f817623..d6de1499e4 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -30,8 +30,6 @@
#include <glib-unix.h>
#endif
-#include <dbus/dbus-glib.h>
-
#if HAVE_CLUTTER
#include <clutter-gtk/clutter-gtk.h>
#include <mx/mx.h>
@@ -497,9 +495,6 @@ main (gint argc,
g_type_init ();
- /* this is to initialize threading for dbus-glib used by GConf */
- dbus_g_thread_init ();
-
/* do not require Gtk+ for --force-shutdown */
if (argc == 2 && argv[1] && g_str_equal (argv[1], "--force-shutdown")) {
shell_force_shutdown ();