From bc4f60ba176b64cc8fd8ffa47a01542f8eb25bdf Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 26 Mar 2009 19:33:16 +0000 Subject: Saving progress again on the attachment rewrite. svn path=/branches/kill-bonobo/; revision=37478 --- widgets/misc/e-attachment-dialog.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widgets/misc/e-attachment-dialog.c') diff --git a/widgets/misc/e-attachment-dialog.c b/widgets/misc/e-attachment-dialog.c index a844c228eb..dd39a253c9 100644 --- a/widgets/misc/e-attachment-dialog.c +++ b/widgets/misc/e-attachment-dialog.c @@ -97,11 +97,13 @@ attachment_dialog_update (EAttachmentDialog *dialog) widget = dialog->priv->display_name_entry; gtk_widget_set_sensitive (widget, sensitive); - gtk_entry_set_text (GTK_ENTRY (widget), display_name); + if (display_name != NULL) + gtk_entry_set_text (GTK_ENTRY (widget), display_name); widget = dialog->priv->description_entry; gtk_widget_set_sensitive (widget, sensitive); - gtk_entry_set_text (GTK_ENTRY (widget), description); + if (description != NULL) + gtk_entry_set_text (GTK_ENTRY (widget), description); widget = dialog->priv->content_type_label; gtk_label_set_text (GTK_LABEL (widget), type_description); -- cgit v1.2.3