subtract 1 from line endpoint, to avoid cursor dirt in the text widget.

2002-02-22  Havoc Pennington  <hp@redhat.com>

	* gtk/gtkstyle.c (_gtk_draw_insertion_cursor): subtract 1 from
	line endpoint, to avoid cursor dirt in the text widget.
	zero-width lines appear to draw the endpoint always. #67999
This commit is contained in:
Havoc Pennington 2002-02-22 17:16:59 +00:00 committed by Havoc Pennington
parent 5109ff0262
commit ccfab158ec
8 changed files with 43 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtkstyle.c (_gtk_draw_insertion_cursor): subtract 1 from
line endpoint, to avoid cursor dirt in the text widget.
zero-width lines appear to draw the endpoint always. #67999
2002-02-22 Havoc Pennington <hp@redhat.com> 2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (buffer_to_widget): implement more cleanly by * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by

View File

@ -1,3 +1,9 @@
2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtkstyle.c (_gtk_draw_insertion_cursor): subtract 1 from
line endpoint, to avoid cursor dirt in the text widget.
zero-width lines appear to draw the endpoint always. #67999
2002-02-22 Havoc Pennington <hp@redhat.com> 2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (buffer_to_widget): implement more cleanly by * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by

View File

@ -1,3 +1,9 @@
2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtkstyle.c (_gtk_draw_insertion_cursor): subtract 1 from
line endpoint, to avoid cursor dirt in the text widget.
zero-width lines appear to draw the endpoint always. #67999
2002-02-22 Havoc Pennington <hp@redhat.com> 2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (buffer_to_widget): implement more cleanly by * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by

View File

@ -1,3 +1,9 @@
2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtkstyle.c (_gtk_draw_insertion_cursor): subtract 1 from
line endpoint, to avoid cursor dirt in the text widget.
zero-width lines appear to draw the endpoint always. #67999
2002-02-22 Havoc Pennington <hp@redhat.com> 2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (buffer_to_widget): implement more cleanly by * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by

View File

@ -1,3 +1,9 @@
2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtkstyle.c (_gtk_draw_insertion_cursor): subtract 1 from
line endpoint, to avoid cursor dirt in the text widget.
zero-width lines appear to draw the endpoint always. #67999
2002-02-22 Havoc Pennington <hp@redhat.com> 2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (buffer_to_widget): implement more cleanly by * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by

View File

@ -1,3 +1,9 @@
2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtkstyle.c (_gtk_draw_insertion_cursor): subtract 1 from
line endpoint, to avoid cursor dirt in the text widget.
zero-width lines appear to draw the endpoint always. #67999
2002-02-22 Havoc Pennington <hp@redhat.com> 2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (buffer_to_widget): implement more cleanly by * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by

View File

@ -1,3 +1,9 @@
2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtkstyle.c (_gtk_draw_insertion_cursor): subtract 1 from
line endpoint, to avoid cursor dirt in the text widget.
zero-width lines appear to draw the endpoint always. #67999
2002-02-22 Havoc Pennington <hp@redhat.com> 2002-02-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (buffer_to_widget): implement more cleanly by * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by

View File

@ -5684,7 +5684,7 @@ _gtk_draw_insertion_cursor (GtkWidget *widget,
for (i = 0; i < stem_width; i++) for (i = 0; i < stem_width; i++)
gdk_draw_line (drawable, gc, gdk_draw_line (drawable, gc,
location->x + i - stem_width / 2, location->y, location->x + i - stem_width / 2, location->y,
location->x + i - stem_width / 2, location->y + location->height); location->x + i - stem_width / 2, location->y + location->height - 1);
if (dir == GTK_TEXT_DIR_RTL) if (dir == GTK_TEXT_DIR_RTL)
{ {