aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2007-12-05 13:40:12 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-12-05 13:40:12 +0800
commit956cd913f1542ec212f2cc14a28da5b4f7d2e525 (patch)
tree21eff2768f48b2299738d115ce1cafdabaa38f5d /mail/mail-config.c
parentc2d2c2fbbd58465ce877a7537b5c14802ab2f22c (diff)
downloadgsoc2013-evolution-956cd913f1542ec212f2cc14a28da5b4f7d2e525.tar.gz
gsoc2013-evolution-956cd913f1542ec212f2cc14a28da5b4f7d2e525.tar.zst
gsoc2013-evolution-956cd913f1542ec212f2cc14a28da5b4f7d2e525.zip
** Added a preference to disable Magic Spacebar.
2007-12-05 Srinivasa Ragavan <sragavan@novell.com> ** Added a preference to disable Magic Spacebar. * em-folder-browser.c: (html_scroll), (emfb_list_key_press): Check the cfg before invoking Magic Spacebar * em-mailer-prefs.c: (em_mailer_prefs_construct): Preference window handling * em-mailer-prefs.h: * evolution-mail.schemas.in: * mail-config.c: (gconf_magic_spacebar_changed), (mail_config_init), (mail_config_get_enable_magic_spacebar): Add it part of MC. * mail-config.glade: * mail-config.h: svn path=/trunk/; revision=34650
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index eda95c7982..f10ac3e868 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -110,7 +110,8 @@ typedef struct {
guint mlimit_notify_id;
gboolean mlimit;
gint mlimit_size;
-
+ guint magic_spacebar_notify_id;
+ gboolean magic_spacebar;
GPtrArray *mime_types;
guint mime_types_notify_id;
@@ -360,6 +361,13 @@ gconf_mlimit_changed (GConfClient *client, guint cnxn_id,
}
static void
+gconf_magic_spacebar_changed (GConfClient *client, guint cnxn_id,
+ GConfEntry *entry, gpointer user_data)
+{
+ config->magic_spacebar = gconf_client_get_bool (config->gconf, "/apps/evolution/mail/display/magic_spacebar", NULL);
+}
+
+static void
gconf_mime_types_changed (GConfClient *client, guint cnxn_id,
GConfEntry *entry, gpointer user_data)
{
@@ -399,6 +407,8 @@ mail_config_init (void)
gconf_mlimit_changed, NULL, NULL, NULL);
config->mlimit_size_notify_id = gconf_client_notify_add (config->gconf, "/apps/evolution/mail/display/message_text_part_limit",
gconf_mlimit_size_changed, NULL, NULL, NULL);
+ config->magic_spacebar_notify_id = gconf_client_notify_add (config->gconf, "/apps/evolution/mail/display/magic_spacebar",
+ gconf_magic_spacebar_changed, NULL, NULL, NULL);
config->spell_notify_id = gconf_client_notify_add (config->gconf, "/GNOME/Spell",
gconf_style_changed, NULL, NULL, NULL);
config->mark_citations__notify_id = gconf_client_notify_add (config->gconf, "/apps/evolution/mail/display/mark_citations",
@@ -424,6 +434,7 @@ mail_config_init (void)
config->address_count = gconf_client_get_int (config->gconf, "/apps/evolution/mail/display/address_count", NULL);
config->mlimit = gconf_client_get_bool (config->gconf, "/apps/evolution/mail/display/force_message_limit", NULL);
config->mlimit_size = gconf_client_get_int (config->gconf, "/apps/evolution/mail/display/message_text_part_limit", NULL);
+ config->magic_spacebar = gconf_client_get_bool (config->gconf, "/apps/evolution/mail/display/magic_spacebar", NULL);
config->accounts = e_account_list_new (config->gconf);
config->signatures = e_signature_list_new (config->gconf);
}
@@ -574,6 +585,12 @@ mail_config_get_message_limit (void)
return config->mlimit_size;
}
+gboolean
+mail_config_get_enable_magic_spacebar ()
+{
+ return config->magic_spacebar;
+}
+
const char *
mail_config_get_label_color_by_name (const char *name)
{