From 1ceb89ab9a6913d36addc350ccafa8deaf2a126c Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 14 Oct 2000 22:42:31 +0000 Subject: If the entry widget is NULL, obviously we can't set any text on it. 2000-10-14 Jeffrey Stedfast * e-msg-composer-attachment.c (set_entry): If the entry widget is NULL, obviously we can't set any text on it. svn path=/trunk/; revision=5927 --- composer/ChangeLog | 5 +++++ composer/e-msg-composer-attachment.c | 14 ++------------ 2 files changed, 7 insertions(+), 12 deletions(-) (limited to 'composer') diff --git a/composer/ChangeLog b/composer/ChangeLog index 227f795b39..b625664ac7 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2000-10-14 Jeffrey Stedfast + + * e-msg-composer-attachment.c (set_entry): If the entry widget is + NULL, obviously we can't set any text on it. + 2000-10-14 Iain Holmes * e-msg-composer-hdrs.c (init): Create a unique-ish id for this set diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c index 7d1e61a883..58484d5f98 100644 --- a/composer/e-msg-composer-attachment.c +++ b/composer/e-msg-composer-attachment.c @@ -284,7 +284,8 @@ set_entry (GladeXML *xml, entry = GTK_ENTRY (glade_xml_get_widget (xml, widget_name)); if (entry == NULL) g_warning ("Entry for `%s' not found.", widget_name); - e_utf8_gtk_entry_set_text (entry, value ? value : ""); + else + e_utf8_gtk_entry_set_text (entry, value ? value : ""); } static void @@ -426,14 +427,3 @@ e_msg_composer_attachment_edit (EMsgComposerAttachment *attachment, connect_widget (editor_gui, "file_name_entry", "focus_out_event", file_name_focus_out_cb, dialog_data); } - - - - - - - - - - - -- cgit