aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config-druid.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2001-01-10 05:44:40 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-10 05:44:40 +0800
commitf39b89c39acf31ea4bdbd0a5bb74f2274434a45b (patch)
tree0234cc1ce72796c1fa568020b1b79605b102442e /mail/mail-config-druid.c
parente6e6a76a4ed43e566aae7c5cc1f39e5cbdd61fd5 (diff)
downloadgsoc2013-evolution-f39b89c39acf31ea4bdbd0a5bb74f2274434a45b.tar.gz
gsoc2013-evolution-f39b89c39acf31ea4bdbd0a5bb74f2274434a45b.tar.zst
gsoc2013-evolution-f39b89c39acf31ea4bdbd0a5bb74f2274434a45b.zip
Gray out the appropriate labels too. (auth_type_changed): And here.
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com> * mail-config-druid.c (incoming_type_changed): Gray out the appropriate labels too. (auth_type_changed): And here. (transport_type_changed): Here too... * mail-account-editor.c (source_check): Gray out the appropriate labels too. (transport_type_changed): And here too. svn path=/trunk/; revision=7340
Diffstat (limited to 'mail/mail-config-druid.c')
-rw-r--r--mail/mail-config-druid.c53
1 files changed, 41 insertions, 12 deletions
diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c
index 0dc74375d4..f42e770dc1 100644
--- a/mail/mail-config-druid.c
+++ b/mail/mail-config-druid.c
@@ -367,40 +367,61 @@ incoming_type_changed (GtkWidget *widget, gpointer user_data)
{
MailConfigDruid *druid = user_data;
CamelProvider *provider;
+ GtkWidget *label;
provider = gtk_object_get_data (GTK_OBJECT (widget), "provider");
druid->source_provider = provider;
/* hostname */
- if (provider->url_flags & CAMEL_URL_ALLOW_HOST)
+ label = glade_xml_get_widget (druid->gui, "lblSourceHost");
+ if (provider->url_flags & CAMEL_URL_ALLOW_HOST) {
gtk_widget_set_sensitive (GTK_WIDGET (druid->incoming_hostname), TRUE);
- else
+ gtk_widget_set_sensitive (label, TRUE);
+ } else {
gtk_widget_set_sensitive (GTK_WIDGET (druid->incoming_hostname), FALSE);
+ gtk_widget_set_sensitive (label, FALSE);
+ }
/* username */
- if (provider->url_flags & CAMEL_URL_ALLOW_USER)
+ label = glade_xml_get_widget (druid->gui, "lblSourceUser");
+ if (provider->url_flags & CAMEL_URL_ALLOW_USER) {
gtk_widget_set_sensitive (GTK_WIDGET (druid->incoming_username), TRUE);
- else
+ gtk_widget_set_sensitive (label, TRUE);
+ } else {
gtk_widget_set_sensitive (GTK_WIDGET (druid->incoming_username), FALSE);
+ gtk_widget_set_sensitive (label, FALSE);
+ }
/* password */
- if (provider->url_flags & CAMEL_URL_ALLOW_PASSWORD)
+ label = glade_xml_get_widget (druid->gui, "lblSourcePasswd");
+ if (provider->url_flags & CAMEL_URL_ALLOW_PASSWORD) {
gtk_widget_set_sensitive (GTK_WIDGET (druid->password), TRUE);
- else
+ gtk_widget_set_sensitive (label, TRUE);
+ } else {
gtk_widget_set_sensitive (GTK_WIDGET (druid->password), FALSE);
+ gtk_widget_set_sensitive (label, FALSE);
+ }
/* auth */
- if (provider->url_flags & CAMEL_URL_ALLOW_AUTH)
+ label = glade_xml_get_widget (druid->gui, "lblSourceAuth");
+ if (provider->url_flags & CAMEL_URL_ALLOW_AUTH) {
gtk_widget_set_sensitive (GTK_WIDGET (druid->auth_type), TRUE);
- else
+ gtk_widget_set_sensitive (label, TRUE);
+ } else {
gtk_widget_set_sensitive (GTK_WIDGET (druid->auth_type), FALSE);
+ gtk_widget_set_sensitive (label, FALSE);
+ }
/* path */
- if (provider->url_flags & CAMEL_URL_ALLOW_PATH)
+ label = glade_xml_get_widget (druid->gui, "lblSourcePath");
+ if (provider->url_flags & CAMEL_URL_ALLOW_PATH) {
gtk_widget_set_sensitive (GTK_WIDGET (druid->incoming_path), TRUE);
- else
+ gtk_widget_set_sensitive (label, TRUE);
+ } else {
gtk_widget_set_sensitive (GTK_WIDGET (druid->incoming_path), FALSE);
+ gtk_widget_set_sensitive (label, FALSE);
+ }
/* keep mail on server */
if (!(provider->flags & CAMEL_PROVIDER_IS_STORAGE))
@@ -455,6 +476,7 @@ auth_type_changed (GtkWidget *widget, gpointer user_data)
{
MailConfigDruid *druid = user_data;
CamelServiceAuthType *authtype;
+ GtkWidget *label;
gboolean sensitive;
authtype = gtk_object_get_data (GTK_OBJECT (widget), "authtype");
@@ -466,8 +488,10 @@ auth_type_changed (GtkWidget *widget, gpointer user_data)
else
sensitive = FALSE;
+ label = glade_xml_get_widget (druid->gui, "lblSourcePasswd");
gtk_widget_set_sensitive (GTK_WIDGET (druid->password), sensitive);
gtk_widget_set_sensitive (GTK_WIDGET (druid->save_password), sensitive);
+ gtk_widget_set_sensitive (label, sensitive);
authentication_check (druid);
}
@@ -565,15 +589,20 @@ transport_type_changed (GtkWidget *widget, gpointer user_data)
{
MailConfigDruid *druid = user_data;
CamelProvider *provider;
+ GtkWidget *label;
provider = gtk_object_get_data (GTK_OBJECT (widget), "provider");
druid->transport_provider = provider;
/* hostname */
- if (provider->url_flags & CAMEL_URL_ALLOW_HOST)
+ label = glade_xml_get_widget (druid->gui, "lblTransportHost");
+ if (provider->url_flags & CAMEL_URL_ALLOW_HOST) {
gtk_widget_set_sensitive (GTK_WIDGET (druid->outgoing_hostname), TRUE);
- else
+ gtk_widget_set_sensitive (label, TRUE);
+ } else {
gtk_widget_set_sensitive (GTK_WIDGET (druid->outgoing_hostname), FALSE);
+ gtk_widget_set_sensitive (label, FALSE);
+ }
/* auth */
if (provider->url_flags & CAMEL_URL_ALLOW_AUTH)