diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-01 09:48:05 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-01 09:48:05 +0000 |
commit | d6e4a1d2be97b08699b91c4dbc5b758245ae1133 (patch) | |
tree | 6832d9483ceb4d1c5a0a7ac32cac9c257bc4121b /src/textview.c | |
parent | 3d37a97aededbe418c1906984d8dd2694176bfc6 (diff) |
improved MimeView and file selection dialog.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@135 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/textview.c')
-rw-r--r-- | src/textview.c | 58 |
1 files changed, 2 insertions, 56 deletions
diff --git a/src/textview.c b/src/textview.c index 03fd6885..1f221491 100644 --- a/src/textview.c +++ b/src/textview.c @@ -654,9 +654,6 @@ static void textview_add_parts(TextView *textview, MimeInfo *mimeinfo, FILE *fp) } } -#define TEXT_INSERT(str) \ - gtk_text_buffer_insert(buffer, &iter, str, -1) - void textview_show_error(TextView *textview) { GtkTextBuffer *buffer; @@ -667,60 +664,9 @@ void textview_show_error(TextView *textview) buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview->text)); gtk_text_buffer_get_start_iter(buffer, &iter); - TEXT_INSERT(_("This message can't be displayed.\n")); -} - -void textview_show_mime_part(TextView *textview, MimeInfo *partinfo) -{ - GtkTextBuffer *buffer; - GtkTextIter iter; - - if (!partinfo) return; - - textview_set_font(textview, NULL); - textview_clear(textview); - - buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview->text)); - gtk_text_buffer_get_start_iter(buffer, &iter); - - TEXT_INSERT(_("To save this part, pop up the context menu with ")); - TEXT_INSERT(_("right click and select `Save as...', ")); - TEXT_INSERT(_("or press `y' key.\n\n")); - - TEXT_INSERT(_("To display this part as a text message, select ")); - TEXT_INSERT(_("`Display as text', or press `t' key.\n\n")); - - TEXT_INSERT(_("To open this part with external program, select ")); - TEXT_INSERT(_("`Open' or `Open with...', ")); - TEXT_INSERT(_("or double-click, or click the center button, ")); - TEXT_INSERT(_("or press `l' key.")); -} - -#if USE_GPGME -void textview_show_signature_part(TextView *textview, MimeInfo *partinfo) -{ - GtkTextBuffer *buffer; - GtkTextIter iter; - - if (!partinfo) return; - - textview_set_font(textview, NULL); - textview_clear(textview); - - buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview->text)); - gtk_text_buffer_get_start_iter(buffer, &iter); - - if (partinfo->sigstatus_full == NULL) { - TEXT_INSERT(_("This signature has not been checked yet.\n")); - TEXT_INSERT(_("To check it, pop up the context menu with\n")); - TEXT_INSERT(_("right click and select `Check signature'.\n")); - } else { - TEXT_INSERT(partinfo->sigstatus_full); - } + gtk_text_buffer_insert(buffer, &iter, + _("This message can't be displayed.\n"), -1); } -#endif /* USE_GPGME */ - -#undef TEXT_INSERT static void textview_write_body(TextView *textview, MimeInfo *mimeinfo, FILE *fp, const gchar *charset) |