diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-10-06 01:45:36 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-10-06 01:45:36 +0000 |
commit | b0190c5521b9a1a50812cfbaddfa346a250c0536 (patch) | |
tree | a79646487ad858a32877d8158236db7bdf44a3a6 | |
parent | 4bd089ce9b2dbc5fe4a751f9d068a2356befed3e (diff) |
action.c: fixed a bug that inserted text was always placed at the top.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1217 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | src/action.c | 4 |
3 files changed, 13 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2006-10-06 + + * src/action.c: execute_actions(): don't move cursor on insertion + mode (fixed a bug that inserted text was always placed at the top). + 2006-10-05 * src/gtkutils.c: gtkut_window_popup(): unset skip_taskbar_hint (fixes diff --git a/ChangeLog.ja b/ChangeLog.ja index 97479b8c..e714387a 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2006-10-06 + + * src/action.c: execute_actions(): 挿入モードではカーソルを移動しない + ようにした(挿入するテキストが常に先頭に配置されるバグを修正)。 + 2006-10-05 * src/gtkutils.c: gtkut_window_popup(): skip_taskbar_hint を解除する diff --git a/src/action.c b/src/action.c index 5cf0374d..1fc39335 100644 --- a/src/action.c +++ b/src/action.c @@ -581,7 +581,9 @@ static gboolean execute_actions(gchar *action, GSList *msg_list, gtk_text_buffer_get_iter_at_offset (textbuf, &start_iter, body_pos); gtk_text_buffer_get_end_iter(textbuf, &end_iter); - gtk_text_buffer_place_cursor(textbuf, &start_iter); + if (!(action_type & ACTION_INSERT)) + gtk_text_buffer_place_cursor + (textbuf, &start_iter); } msg_str = gtk_text_buffer_get_text (textbuf, &start_iter, &end_iter, FALSE); |