diff options
author | Dan Winship <danw@src.gnome.org> | 2003-03-25 23:48:48 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-03-25 23:48:48 +0800 |
commit | ce81bdab983d9d3277de70c4d55286a6481cb42e (patch) | |
tree | b50725a0a1eabc07d30b75d6ace2467c657b8c15 /composer | |
parent | b04bd957c79358e009caf31dafee3889e1ec6492 (diff) | |
download | gsoc2013-evolution-ce81bdab983d9d3277de70c4d55286a6481cb42e.tar.gz gsoc2013-evolution-ce81bdab983d9d3277de70c4d55286a6481cb42e.tar.zst gsoc2013-evolution-ce81bdab983d9d3277de70c4d55286a6481cb42e.zip |
Update for e_notice move
* e-msg-composer.c: Update for e_notice move
svn path=/trunk/; revision=20501
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 4 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 18 |
2 files changed, 13 insertions, 9 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index aa3994c218..85d63ddba8 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,7 @@ +2003-03-25 Dan Winship <danw@ximian.com> + + * e-msg-composer.c: Update for e_notice move + 2003-03-20 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #39813 diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index e913e52e67..7c660eb08a 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -75,9 +75,9 @@ #include <glade/glade.h> #include <gal/util/e-iconv.h> -#include <gal/widgets/e-gui-utils.h> #include <gal/e-text/e-entry.h> +#include "e-util/e-dialog-utils.h" #include "widgets/misc/e-charset-picker.h" #include "camel/camel.h" @@ -1186,7 +1186,7 @@ save (EMsgComposer *composer, const char *file_name) if (ev._major != CORBA_NO_EXCEPTION) { char *tmp = g_path_get_basename(my_file_name); - e_notice (GTK_WINDOW (composer), GTK_MESSAGE_ERROR, + e_notice (composer, GTK_MESSAGE_ERROR, _("Error saving file: %s"), tmp); g_free(tmp); } else @@ -1209,7 +1209,7 @@ load (EMsgComposer *composer, const char *file_name) if (ev._major != CORBA_NO_EXCEPTION) { char *tmp = g_path_get_basename(file_name); - e_notice (GTK_WINDOW (composer), GTK_MESSAGE_ERROR, + e_notice (composer, GTK_MESSAGE_ERROR, _("Error loading file: %s"), tmp); g_free(tmp); } @@ -1244,7 +1244,7 @@ autosave_save_draft (EMsgComposer *composer) file = composer->autosave_file; if (fd == -1) { - e_notice (GTK_WINDOW (composer), GTK_MESSAGE_ERROR, + e_notice (composer, GTK_MESSAGE_ERROR, _("Error accessing file: %s"), file); return FALSE; } @@ -1252,21 +1252,21 @@ autosave_save_draft (EMsgComposer *composer) message = e_msg_composer_get_message_draft (composer); if (message == NULL) { - e_notice (GTK_WINDOW (composer), GTK_MESSAGE_ERROR, + e_notice (composer, GTK_MESSAGE_ERROR, _("Unable to retrieve message from editor")); return FALSE; } if (lseek (fd, (off_t)0, SEEK_SET) == -1) { camel_object_unref (message); - e_notice (GTK_WINDOW (composer), GTK_MESSAGE_ERROR, + e_notice (composer, GTK_MESSAGE_ERROR, _("Unable to seek on file: %s\n%s"), file, g_strerror (errno)); return FALSE; } if (ftruncate (fd, (off_t)0) == -1) { camel_object_unref (message); - e_notice (GTK_WINDOW (composer), GTK_MESSAGE_ERROR, + e_notice (composer, GTK_MESSAGE_ERROR, _("Unable to truncate file: %s\n%s"), file, g_strerror (errno)); return FALSE; } @@ -1275,7 +1275,7 @@ autosave_save_draft (EMsgComposer *composer) camelfd = dup(fd); if (fd == -1) { camel_object_unref (message); - e_notice (GTK_WINDOW (composer), GTK_MESSAGE_ERROR, + e_notice (composer, GTK_MESSAGE_ERROR, _("Unable to copy file descriptor: %s\n%s"), file, g_strerror (errno)); return FALSE; } @@ -1284,7 +1284,7 @@ autosave_save_draft (EMsgComposer *composer) stream = camel_stream_fs_new_with_fd (camelfd); if (camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), stream) == -1 || camel_stream_close (CAMEL_STREAM (stream)) == -1) { - e_notice (GTK_WINDOW (composer), GTK_MESSAGE_ERROR, + e_notice (composer, GTK_MESSAGE_ERROR, _("Error autosaving message: %s\n %s"), file, strerror(errno)); success = FALSE; |