aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-11-29 21:48:51 +0800
committerMilan Crha <mcrha@redhat.com>2011-11-29 21:48:51 +0800
commit06e45c8e87d64c8d5a180115bcdded2f3551a886 (patch)
tree5514457bb0e0421ca5e619a746b0c1d226eda4ff /composer
parentf2b9a4b609b13d51ec1925e7c297e87e17026e33 (diff)
downloadgsoc2013-evolution-06e45c8e87d64c8d5a180115bcdded2f3551a886.tar.gz
gsoc2013-evolution-06e45c8e87d64c8d5a180115bcdded2f3551a886.tar.zst
gsoc2013-evolution-06e45c8e87d64c8d5a180115bcdded2f3551a886.zip
Bug #664708 - Composer's headers preference is reset on From change
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-header-table.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/composer/e-composer-header-table.c b/composer/e-composer-header-table.c
index 5083ef38a1..d0955c4afe 100644
--- a/composer/e-composer-header-table.c
+++ b/composer/e-composer-header-table.c
@@ -334,6 +334,9 @@ composer_header_table_setup_mail_headers (EComposerHeaderTable *table)
break;
}
+ if (key != NULL)
+ g_settings_unbind (header, "visible");
+
switch (ii) {
case E_COMPOSER_HEADER_FROM:
sensitive = TRUE;
@@ -358,10 +361,8 @@ composer_header_table_setup_mail_headers (EComposerHeaderTable *table)
e_composer_header_set_sensitive (header, sensitive);
e_composer_header_set_visible (header, visible);
- if (key != NULL) {
- g_settings_unbind (settings, key);
+ if (key != NULL)
g_settings_bind (settings, key, G_OBJECT (header), "visible", G_SETTINGS_BIND_DEFAULT);
- }
}
g_object_unref (settings);
@@ -395,6 +396,9 @@ composer_header_table_setup_post_headers (EComposerHeaderTable *table)
break;
}
+ if (key != NULL)
+ g_settings_unbind (header, "visible");
+
switch (ii) {
case E_COMPOSER_HEADER_FROM:
case E_COMPOSER_HEADER_POST_TO:
@@ -410,10 +414,8 @@ composer_header_table_setup_post_headers (EComposerHeaderTable *table)
break;
}
- if (key != NULL) {
- g_settings_unbind (settings, key);
+ if (key != NULL)
g_settings_bind (settings, key, G_OBJECT (header), "visible", G_SETTINGS_BIND_DEFAULT);
- }
}
g_object_unref (settings);