]> Pileus Git - ~andy/gtk/commitdiff
subtract 1 from line endpoint, to avoid cursor dirt in the text widget.
authorHavoc Pennington <hp@redhat.com>
Fri, 22 Feb 2002 17:16:59 +0000 (17:16 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Fri, 22 Feb 2002 17:16:59 +0000 (17:16 +0000)
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

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkstyle.c

index b5d3d430cb67458d331fc5b817b0ab93dadc0095..7345129cbe496b60ad9d2f655c8e224320c308b6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by
index b5d3d430cb67458d331fc5b817b0ab93dadc0095..7345129cbe496b60ad9d2f655c8e224320c308b6 100644 (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>
 
        * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by
index b5d3d430cb67458d331fc5b817b0ab93dadc0095..7345129cbe496b60ad9d2f655c8e224320c308b6 100644 (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>
 
        * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by
index b5d3d430cb67458d331fc5b817b0ab93dadc0095..7345129cbe496b60ad9d2f655c8e224320c308b6 100644 (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>
 
        * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by
index b5d3d430cb67458d331fc5b817b0ab93dadc0095..7345129cbe496b60ad9d2f655c8e224320c308b6 100644 (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>
 
        * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by
index b5d3d430cb67458d331fc5b817b0ab93dadc0095..7345129cbe496b60ad9d2f655c8e224320c308b6 100644 (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>
 
        * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by
index b5d3d430cb67458d331fc5b817b0ab93dadc0095..7345129cbe496b60ad9d2f655c8e224320c308b6 100644 (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>
 
        * gtk/gtktextview.c (buffer_to_widget): implement more cleanly by
index 83c2a94a8bda6a1708e06d768698138ad2e3722e..bfee98bf311ff8ea1241fd49d48f39019f5eedbb 100644 (file)
@@ -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)
     {