diff options
author | Havoc Pennington <hp@redhat.com> | 2002-02-22 17:16:59 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-02-22 17:16:59 +0000 |
commit | ccfab158ec70ad7dbb672135808a344ff154a4f4 (patch) | |
tree | 3557a40bc5bdb3993f2621f378af34b0aca81ee1 | |
parent | 5109ff026258965af56e72a0397151335c5685e3 (diff) | |
download | gtk+-ccfab158ec70ad7dbb672135808a344ff154a4f4.tar.gz |
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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-0 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-2 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-4 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 6 | ||||
-rw-r--r-- | gtk/gtkstyle.c | 2 |
8 files changed, 43 insertions, 1 deletions
@@ -1,5 +1,11 @@ 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> + * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by using text_window->allocation.x/y instead of recomputing it. Fixes a bug caused by leaving out the border width here. 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,5 +1,11 @@ 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> + * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by using text_window->allocation.x/y instead of recomputing it. Fixes a bug caused by leaving out the border width here. 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,5 +1,11 @@ 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> + * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by using text_window->allocation.x/y instead of recomputing it. Fixes a bug caused by leaving out the border width here. 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,5 +1,11 @@ 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> + * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by using text_window->allocation.x/y instead of recomputing it. Fixes a bug caused by leaving out the border width here. 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,5 +1,11 @@ 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> + * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by using text_window->allocation.x/y instead of recomputing it. Fixes a bug caused by leaving out the border width here. 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,5 +1,11 @@ 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> + * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by using text_window->allocation.x/y instead of recomputing it. Fixes a bug caused by leaving out the border width here. 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,5 +1,11 @@ 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> + * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by using text_window->allocation.x/y instead of recomputing it. Fixes a bug caused by leaving out the border width here. 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) { |