From ccfab158ec70ad7dbb672135808a344ff154a4f4 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 22 Feb 2002 17:16:59 +0000 Subject: [PATCH] subtract 1 from line endpoint, to avoid cursor dirt in the text widget. 2002-02-22 Havoc Pennington * 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 --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtkstyle.c | 2 +- 8 files changed, 43 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b5d3d430cb..7345129cbe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-02-22 Havoc Pennington + + * 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 * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index b5d3d430cb..7345129cbe 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +2002-02-22 Havoc Pennington + + * 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 * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index b5d3d430cb..7345129cbe 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2002-02-22 Havoc Pennington + + * 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 * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index b5d3d430cb..7345129cbe 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2002-02-22 Havoc Pennington + + * 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 * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index b5d3d430cb..7345129cbe 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2002-02-22 Havoc Pennington + + * 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 * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index b5d3d430cb..7345129cbe 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2002-02-22 Havoc Pennington + + * 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 * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index b5d3d430cb..7345129cbe 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2002-02-22 Havoc Pennington + + * 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 * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 83c2a94a8b..bfee98bf31 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -5684,7 +5684,7 @@ _gtk_draw_insertion_cursor (GtkWidget *widget, for (i = 0; i < stem_width; i++) gdk_draw_line (drawable, gc, 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) {