From 6fea277b7a74570243989f30b09ae895bc96ee47 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 22 Aug 2001 18:37:03 +0000 Subject: When reporting an error, use my_file_name instead of file_name since 2001-08-22 Jeffrey Stedfast * e-msg-composer.c (save): When reporting an error, use my_file_name instead of file_name since file_name can be NULL. svn path=/trunk/; revision=12387 --- composer/e-msg-composer.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 740a294124..a0a5c1d6d8 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -871,8 +871,10 @@ save (EMsgComposer *composer, if ((fd = open (my_file_name, O_RDONLY | O_CREAT | O_EXCL)) == -1) { GtkWidget *dialog, *label; - dialog = gnome_dialog_new (_("Warning!"), GNOME_STOCK_BUTTON_YES, - GNOME_STOCK_BUTTON_NO, NULL); + dialog = gnome_dialog_new (_("Warning!"), + GNOME_STOCK_BUTTON_YES, + GNOME_STOCK_BUTTON_NO, + NULL); label = gtk_label_new (_("File exists, overwrite?")); gtk_widget_show (label); gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), label, TRUE, TRUE, 0); @@ -895,7 +897,7 @@ save (EMsgComposer *composer, if (ev._major != CORBA_NO_EXCEPTION) { e_notice (GTK_WINDOW (composer), GNOME_MESSAGE_BOX_ERROR, - _("Error saving file: %s"), g_basename (file_name)); + _("Error saving file: %s"), g_basename (my_file_name)); } CORBA_exception_free (&ev); @@ -904,8 +906,7 @@ save (EMsgComposer *composer, } static void -load (EMsgComposer *composer, - const char *file_name) +load (EMsgComposer *composer, const char *file_name) { CORBA_Environment ev; -- cgit