aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-view-actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mail/e-mail-shell-view-actions.c')
-rw-r--r--modules/mail/e-mail-shell-view-actions.c63
1 files changed, 39 insertions, 24 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 920aa0680e..b62e7c1a00 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -1536,56 +1536,71 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view)
/* Fine tuning. */
- e_binding_new (
+ g_object_bind_property (
ACTION (MAIL_THREADS_GROUP_BY), "active",
- ACTION (MAIL_FOLDER_SELECT_THREAD), "sensitive");
+ ACTION (MAIL_FOLDER_SELECT_THREAD), "sensitive",
+ G_BINDING_SYNC_CREATE);
- e_binding_new (
+ g_object_bind_property (
ACTION (MAIL_THREADS_GROUP_BY), "active",
- ACTION (MAIL_FOLDER_SELECT_SUBTHREAD), "sensitive");
+ ACTION (MAIL_FOLDER_SELECT_SUBTHREAD), "sensitive",
+ G_BINDING_SYNC_CREATE);
- e_binding_new (
+ g_object_bind_property (
ACTION (MAIL_THREADS_GROUP_BY), "active",
- ACTION (MAIL_THREADS_COLLAPSE_ALL), "sensitive");
+ ACTION (MAIL_THREADS_COLLAPSE_ALL), "sensitive",
+ G_BINDING_SYNC_CREATE);
- e_binding_new (
+ g_object_bind_property (
ACTION (MAIL_THREADS_GROUP_BY), "active",
- ACTION (MAIL_THREADS_EXPAND_ALL), "sensitive");
+ ACTION (MAIL_THREADS_EXPAND_ALL), "sensitive",
+ G_BINDING_SYNC_CREATE);
- e_mutual_binding_new (
+ g_object_bind_property (
ACTION (MAIL_PREVIEW), "active",
- mail_view, "preview-visible");
+ mail_view, "preview-visible",
+ G_BINDING_BIDIRECTIONAL |
+ G_BINDING_SYNC_CREATE);
- e_mutual_binding_new (
+ g_object_bind_property (
ACTION (MAIL_THREADS_GROUP_BY), "active",
- mail_shell_content, "group-by-threads");
+ mail_shell_content, "group-by-threads",
+ G_BINDING_BIDIRECTIONAL |
+ G_BINDING_SYNC_CREATE);
- e_binding_new (
+ g_object_bind_property (
ACTION (MAIL_PREVIEW), "active",
- ACTION (MAIL_VIEW_CLASSIC), "sensitive");
+ ACTION (MAIL_VIEW_CLASSIC), "sensitive",
+ G_BINDING_SYNC_CREATE);
- e_binding_new (
+ g_object_bind_property (
ACTION (MAIL_PREVIEW), "active",
- ACTION (MAIL_VIEW_VERTICAL), "sensitive");
+ ACTION (MAIL_VIEW_VERTICAL), "sensitive",
+ G_BINDING_SYNC_CREATE);
- e_mutual_binding_new (
+ g_object_bind_property (
ACTION (MAIL_SHOW_DELETED), "active",
- mail_view, "show-deleted");
+ mail_view, "show-deleted",
+ G_BINDING_BIDIRECTIONAL |
+ G_BINDING_SYNC_CREATE);
- e_binding_new (
+ g_object_bind_property (
shell_backend, "busy",
- ACTION (MAIL_STOP), "sensitive");
+ ACTION (MAIL_STOP), "sensitive",
+ G_BINDING_SYNC_CREATE);
/* Keep the sensitivity of "Create Search Folder from Search"
* in sync with "Save Search" so that its only selectable when
* showing search results. */
- e_binding_new (
+ g_object_bind_property (
ACTION (SEARCH_SAVE), "sensitive",
- ACTION (MAIL_CREATE_SEARCH_FOLDER), "sensitive");
+ ACTION (MAIL_CREATE_SEARCH_FOLDER), "sensitive",
+ G_BINDING_SYNC_CREATE);
- e_binding_new (
+ g_object_bind_property (
shell, "online",
- ACTION (MAIL_DOWNLOAD), "sensitive");
+ ACTION (MAIL_DOWNLOAD), "sensitive",
+ G_BINDING_SYNC_CREATE);
g_signal_connect (
ACTION (GAL_SAVE_CUSTOM_VIEW), "activate",