diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | src/textview.c | 6 |
3 files changed, 16 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2005-10-20 + * src/textview.c: textview_adj_value_changed(): don't move cursor + if selection exists. + +2005-10-20 + * libsylph/filter.c: fixed execution failure if a file path includes space. diff --git a/ChangeLog.ja b/ChangeLog.ja index 6fdf88ab..78fee4d3 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,10 @@ 2005-10-20 + * src/textview.c: textview_adj_value_changed(): 選択部が存在するときは + カーソルを移動しないようにした。 + +2005-10-20 + * libsylph/filter.c: ファイルパスが空白を含むときに実行に失敗して いたバグを修正。 diff --git a/src/textview.c b/src/textview.c index 9ee523a3..5161b6a4 100644 --- a/src/textview.c +++ b/src/textview.c @@ -2060,7 +2060,13 @@ static void textview_popup_menu_activate_image_cb(GtkMenuItem *menuitem, static void textview_adj_value_changed(GtkAdjustment *adj, gpointer data) { TextView *textview = (TextView *)data; + GtkTextBuffer *buffer; + GtkTextIter start, end; + buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview->text)); + gtk_text_buffer_get_selection_bounds(buffer, &start, &end); + if (!gtk_text_iter_equal(&start, &end)) + return; gtk_text_view_place_cursor_onscreen(GTK_TEXT_VIEW(textview->text)); } |