aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r--mail/mail-account-gui.c7
1 files changed, 4 insertions, 3 deletions
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);
}