aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-09-17 02:43:19 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-09-17 02:43:19 +0000
commit42276d67cd3f739ac1528b74c98d310634465021 (patch)
treeba173799f0ac818bb9eeff157566eec0e7374eb4 /src
parent62b89d34b9fc84f7f9bc8c3f035356d30254b872 (diff)
src/textview.c: modified debug output.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3283 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/textview.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/textview.c b/src/textview.c
index 3d597d86..7f84f337 100644
--- a/src/textview.c
+++ b/src/textview.c
@@ -500,6 +500,8 @@ void textview_show_message(TextView *textview, MimeInfo *mimeinfo,
return;
}
+ debug_print("textview_show_message: displaying: %s\n", file);
+
charset = textview_get_src_encoding(textview, mimeinfo);
textview_set_font(textview, charset);
textview_clear(textview);
@@ -512,8 +514,6 @@ void textview_show_message(TextView *textview, MimeInfo *mimeinfo,
gtk_text_buffer_get_end_iter(buffer, &iter);
textview->body_pos = gtk_text_iter_get_offset(&iter);
- debug_print("textview_show_message: body_pos: %d\n",
- textview->body_pos);
} else {
gtk_text_buffer_get_end_iter(buffer, &iter);
mark = gtk_text_buffer_get_mark(buffer, "attach-file-pos");
@@ -632,8 +632,6 @@ void textview_show_part(TextView *textview, MimeInfo *mimeinfo, FILE *fp)
gtk_text_buffer_get_end_iter(buffer, &iter);
textview->body_pos = gtk_text_iter_get_offset(&iter);
- debug_print("textview_show_part: body_pos: %d\n",
- textview->body_pos);
if (!mimeinfo->main)
gtk_text_buffer_insert(buffer, &iter, "\n", 1);
} else {
@@ -961,6 +959,7 @@ static void textview_add_part(TextView *textview, MimeInfo *mimeinfo, FILE *fp)
g_snprintf(buf, sizeof(buf), "%s (%s)",
mimeinfo->content_type,
to_human_readable(mimeinfo->content_size));
+ debug_print("textview_add_part: adding: %s\n", buf);
gtk_text_buffer_insert(buffer, &iter, "\n", 1);
textview_add_part_widget(textview, &iter, mimeinfo, buf);
gtk_text_buffer_get_end_iter(buffer, &iter);
@@ -994,6 +993,8 @@ static void textview_add_part(TextView *textview, MimeInfo *mimeinfo, FILE *fp)
mimeinfo->content_type,
to_human_readable(mimeinfo->content_size));
+ debug_print("textview_add_part: adding: %s\n", buf);
+
if (mimeinfo->mime_type != MIME_TEXT &&
mimeinfo->mime_type != MIME_TEXT_HTML) {
if (mimeinfo->mime_type == MIME_IMAGE &&
@@ -2755,7 +2756,6 @@ static void textview_uri_list_update_offsets(TextView *textview, gint start, gin
RemoteURI *uri = (RemoteURI *)cur->data;
if (uri->start >= start) {
- debug_print("textview_uri_list_update_offsets: update: (%d, %d) -> (%d, %d)\n", uri->start, uri->end, uri->start + add, uri->end + add);
uri->start += add;
uri->end += add;
}