aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-account-gui.c7
-rw-r--r--mail/mail-config.glade2
3 files changed, 10 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 2067d37ba4..4e78f35e66 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-17 Jason Leach <jleach@ximian.com>
+
+ * mail-account-gui.c (source_type_changed): Fix for last change:
+ hide the entire widget, not just the entry.
+
2001-07-17 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (message_list_drag_data_recieved): Fix to
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c
index fbb7bb5558..6d32b7527b 100644
--- a/mail/mail-account-gui.c
+++ b/mail/mail-account-gui.c
@@ -261,7 +261,7 @@ static void
source_type_changed (GtkWidget *widget, gpointer user_data)
{
MailAccountGui *gui = user_data;
- GtkWidget *label, *frame, *dwidget = NULL;
+ GtkWidget *file_entry, *label, *frame, *dwidget = NULL;
CamelProvider *provider;
provider = gtk_object_get_data (GTK_OBJECT (widget), "provider");
@@ -299,6 +299,7 @@ source_type_changed (GtkWidget *widget, gpointer user_data)
/* path */
label = glade_xml_get_widget (gui->xml, "source_path_label");
+ file_entry = glade_xml_get_widget (gui->xml, "source_path_entry");
if (CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_PATH)) {
if (!dwidget)
@@ -321,11 +322,11 @@ source_type_changed (GtkWidget *widget, gpointer user_data)
gtk_entry_set_text (gui->source.path, "");
}
- gtk_widget_show (GTK_WIDGET (gui->source.path));
+ gtk_widget_show (GTK_WIDGET (file_entry));
gtk_widget_show (label);
} else {
gtk_entry_set_text (gui->source.path, "");
- gtk_widget_hide (GTK_WIDGET (gui->source.path));
+ gtk_widget_hide (GTK_WIDGET (file_entry));
gtk_widget_hide (label);
}
diff --git a/mail/mail-config.glade b/mail/mail-config.glade
index d11fae11f3..ee47c67187 100644
--- a/mail/mail-config.glade
+++ b/mail/mail-config.glade
@@ -937,7 +937,7 @@ None
<widget>
<class>GnomeFileEntry</class>
- <name>fileentry1</name>
+ <name>source_path_entry</name>
<max_saved>10</max_saved>
<title>Mailbox location</title>
<directory>False</directory>