aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-02-04 10:57:08 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-02-04 10:57:08 +0000
commit61abc7ed4de14355a0c9083aeea396bfe5bbff56 (patch)
tree69880c2333092c291d7e46a8deade977dbb2b9b5
parent6e3390d6104c8de11448741242641d1bcb0a85f5 (diff)
action.c: don't include header part in message text.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@91 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--src/action.c6
3 files changed, 13 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index fe2e074d..d3e7f5d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-02-04
+ * src/action.c: execute_actions(): don't include header part in
+ message text.
+
+2005-02-04
+
* src/textview.c
src/gtkutils.[ch]: reimplemented message text search.
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 59bc530a..2735505c 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,10 @@
2005-02-04
+ * src/action.c: execute_actions(): メッセージテキストにヘッダ部分
+ を含まないようにした。
+
+2005-02-04
+
* src/textview.c
src/gtkutils.[ch]: メッセージテキスト検索を再実装。
diff --git a/src/action.c b/src/action.c
index 22c13108..f00340b5 100644
--- a/src/action.c
+++ b/src/action.c
@@ -576,7 +576,8 @@ static gboolean execute_actions(gchar *action, GSList *msg_list,
is_selection = gtk_text_buffer_get_selection_bounds
(textbuf, &start_iter, &end_iter);
if (!is_selection) {
- gtk_text_buffer_get_start_iter(textbuf, &start_iter);
+ gtk_text_buffer_get_iter_at_offset
+ (textbuf, &start_iter, body_pos);
gtk_text_buffer_get_end_iter(textbuf, &end_iter);
}
msg_str = gtk_text_buffer_get_text
@@ -1004,8 +1005,7 @@ static void update_io_dialog(Children *children)
gtk_widget_show(children->scrolledwin);
textbuf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
- gtk_text_buffer_get_start_iter(textbuf, &start_iter);
- gtk_text_buffer_get_end_iter(textbuf, &end_iter);
+ gtk_text_buffer_get_bounds(textbuf, &start_iter, &end_iter);
gtk_text_buffer_delete(textbuf, &start_iter, &end_iter);
gtk_text_buffer_get_start_iter(textbuf, &iter);