Allow to select the last word in the buffer. (#135487, Paolo Borelli)
Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtktextview.c (extend_selection): * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow to select the last word in the buffer. (#135487, Paolo Borelli)
This commit is contained in:
committed by
Matthias Clasen
parent
576ce8141b
commit
befe86f11f
@@ -1,3 +1,9 @@
|
||||
Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktextview.c (extend_selection):
|
||||
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
|
||||
to select the last word in the buffer. (#135487, Paolo Borelli)
|
||||
|
||||
Wed Mar 3 23:54:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkentrycompletion.c: Doc update.
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktextview.c (extend_selection):
|
||||
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
|
||||
to select the last word in the buffer. (#135487, Paolo Borelli)
|
||||
|
||||
Wed Mar 3 23:54:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkentrycompletion.c: Doc update.
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktextview.c (extend_selection):
|
||||
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
|
||||
to select the last word in the buffer. (#135487, Paolo Borelli)
|
||||
|
||||
Wed Mar 3 23:54:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkentrycompletion.c: Doc update.
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktextview.c (extend_selection):
|
||||
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
|
||||
to select the last word in the buffer. (#135487, Paolo Borelli)
|
||||
|
||||
Wed Mar 3 23:54:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkentrycompletion.c: Doc update.
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Thu Mar 4 00:31:54 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtktextview.c (extend_selection):
|
||||
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Allow
|
||||
to select the last word in the buffer. (#135487, Paolo Borelli)
|
||||
|
||||
Wed Mar 3 23:54:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkentrycompletion.c: Doc update.
|
||||
|
||||
@@ -4617,8 +4617,11 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view,
|
||||
case GTK_MOVEMENT_WORDS:
|
||||
if (count < 0)
|
||||
gtk_text_iter_backward_visible_word_starts (&newplace, -count);
|
||||
else if (count > 0)
|
||||
gtk_text_iter_forward_visible_word_ends (&newplace, count);
|
||||
else if (count > 0)
|
||||
{
|
||||
if (!gtk_text_iter_forward_visible_word_ends (&newplace, count))
|
||||
gtk_text_iter_forward_to_end (&newplace);
|
||||
}
|
||||
break;
|
||||
|
||||
case GTK_MOVEMENT_DISPLAY_LINES:
|
||||
@@ -5398,7 +5401,10 @@ extend_selection (GtkTextView *text_view,
|
||||
gtk_text_iter_backward_visible_word_start (start);
|
||||
|
||||
if (!gtk_text_iter_ends_word (end))
|
||||
gtk_text_iter_forward_visible_word_end (end);
|
||||
{
|
||||
if (!gtk_text_iter_forward_visible_word_end (end))
|
||||
gtk_text_iter_forward_to_end (end);
|
||||
}
|
||||
}
|
||||
else
|
||||
extend = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user