aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail-config
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-04-09 01:20:23 +0800
committerMilan Crha <mcrha@redhat.com>2013-04-09 01:21:04 +0800
commit2dfd548d26e179dfb12d836b57a88c215d76a926 (patch)
tree4b829ce2d938a4bb3737e0ce6c8def28497adc3c /modules/mail-config
parent94372b5f1857b66d1ae7e14a37075122b5c8336c (diff)
downloadgsoc2013-evolution-2dfd548d26e179dfb12d836b57a88c215d76a926.tar
gsoc2013-evolution-2dfd548d26e179dfb12d836b57a88c215d76a926.tar.gz
gsoc2013-evolution-2dfd548d26e179dfb12d836b57a88c215d76a926.tar.bz2
gsoc2013-evolution-2dfd548d26e179dfb12d836b57a88c215d76a926.tar.lz
gsoc2013-evolution-2dfd548d26e179dfb12d836b57a88c215d76a926.tar.xz
gsoc2013-evolution-2dfd548d26e179dfb12d836b57a88c215d76a926.tar.zst
gsoc2013-evolution-2dfd548d26e179dfb12d836b57a88c215d76a926.zip
Bug #271262 - Allow Send/Receive of local stores in offline
Diffstat (limited to 'modules/mail-config')
-rw-r--r--modules/mail-config/e-mail-config-sendmail-backend.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/mail-config/e-mail-config-sendmail-backend.c b/modules/mail-config/e-mail-config-sendmail-backend.c
index f656caa6ee..1d92f2f43b 100644
--- a/modules/mail-config/e-mail-config-sendmail-backend.c
+++ b/modules/mail-config/e-mail-config-sendmail-backend.c
@@ -44,6 +44,7 @@ mail_config_sendmail_backend_insert_widgets (EMailConfigServiceBackend *backend,
GtkWidget *custom_binary_entry;
GtkWidget *use_custom_args_check;
GtkWidget *custom_args_entry;
+ GtkWidget *send_in_offline;
gchar *markup;
PangoAttribute *attr;
PangoAttrList *attr_list;
@@ -124,6 +125,10 @@ mail_config_sendmail_backend_insert_widgets (EMailConfigServiceBackend *backend,
gtk_label_set_attributes (GTK_LABEL (widget), attr_list);
pango_attr_list_unref (attr_list);
+ widget = gtk_check_button_new_with_mnemonic (_("Send mail also when in offline _mode"));
+ gtk_grid_attach (GTK_GRID (container), widget, 0, 5, 2, 1);
+ send_in_offline = widget;
+
g_object_bind_property (
use_custom_binary_check, "active",
custom_binary_entry, "sensitive",
@@ -158,6 +163,12 @@ mail_config_sendmail_backend_insert_widgets (EMailConfigServiceBackend *backend,
G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE);
+ g_object_bind_property (
+ settings, "send-in-offline",
+ send_in_offline, "active",
+ G_BINDING_BIDIRECTIONAL |
+ G_BINDING_SYNC_CREATE);
+
gtk_widget_show_all (container);
}