]> Pileus Git - ~andy/gtk/commitdiff
When in split cursor mode, always add the cursor as both strong and weak
authorOwen Taylor <otaylor@redhat.com>
Sun, 3 Mar 2002 16:16:08 +0000 (16:16 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sun, 3 Mar 2002 16:16:08 +0000 (16:16 +0000)
Sun Mar  3 11:12:16 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtktextlayout.c (add_cursor): When in split cursor
mode, always add the cursor as both strong and weak
so that it is drawn with the correct non-split color.

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/gtktextlayout.c

index d48162491a472d2e23f677b65a3b57c7debac89a..58f27760ae3f9dc709194948663ee72f1144361a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun Mar  3 11:12:16 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (add_cursor): When in split cursor
+       mode, always add the cursor as both strong and weak
+       so that it is drawn with the correct non-split color.
+
 Sun Mar  3 11:05:13 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am (moduledir): Fix
index d48162491a472d2e23f677b65a3b57c7debac89a..58f27760ae3f9dc709194948663ee72f1144361a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Mar  3 11:12:16 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (add_cursor): When in split cursor
+       mode, always add the cursor as both strong and weak
+       so that it is drawn with the correct non-split color.
+
 Sun Mar  3 11:05:13 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am (moduledir): Fix
index d48162491a472d2e23f677b65a3b57c7debac89a..58f27760ae3f9dc709194948663ee72f1144361a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Mar  3 11:12:16 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (add_cursor): When in split cursor
+       mode, always add the cursor as both strong and weak
+       so that it is drawn with the correct non-split color.
+
 Sun Mar  3 11:05:13 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am (moduledir): Fix
index d48162491a472d2e23f677b65a3b57c7debac89a..58f27760ae3f9dc709194948663ee72f1144361a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Mar  3 11:12:16 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (add_cursor): When in split cursor
+       mode, always add the cursor as both strong and weak
+       so that it is drawn with the correct non-split color.
+
 Sun Mar  3 11:05:13 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am (moduledir): Fix
index d48162491a472d2e23f677b65a3b57c7debac89a..58f27760ae3f9dc709194948663ee72f1144361a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Mar  3 11:12:16 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (add_cursor): When in split cursor
+       mode, always add the cursor as both strong and weak
+       so that it is drawn with the correct non-split color.
+
 Sun Mar  3 11:05:13 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am (moduledir): Fix
index d48162491a472d2e23f677b65a3b57c7debac89a..58f27760ae3f9dc709194948663ee72f1144361a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Mar  3 11:12:16 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (add_cursor): When in split cursor
+       mode, always add the cursor as both strong and weak
+       so that it is drawn with the correct non-split color.
+
 Sun Mar  3 11:05:13 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am (moduledir): Fix
index d48162491a472d2e23f677b65a3b57c7debac89a..58f27760ae3f9dc709194948663ee72f1144361a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Mar  3 11:12:16 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (add_cursor): When in split cursor
+       mode, always add the cursor as both strong and weak
+       so that it is drawn with the correct non-split color.
+
 Sun Mar  3 11:05:13 2002  Owen Taylor  <otaylor@redhat.com>
 
        * modules/input/Makefile.am (moduledir): Fix
index 6ebea4f774b907af66fa9e555e9bff20b49c629c..b92e85cc8f16abdd9cd88ccb7e09bdf7be8706fd 100644 (file)
@@ -1458,7 +1458,7 @@ add_cursor (GtkTextLayout      *layout,
       cursor->y = PANGO_PIXELS (strong_pos.y);
       cursor->height = PANGO_PIXELS (strong_pos.height);
       cursor->is_strong = TRUE;
-      cursor->is_weak = FALSE;
+      cursor->is_weak = (layout->cursor_direction == GTK_TEXT_DIR_NONE) ? FALSE : TRUE;
       display->cursors = g_slist_prepend (display->cursors, cursor);
     }
   
@@ -1473,7 +1473,7 @@ add_cursor (GtkTextLayout      *layout,
          cursor->x = PANGO_PIXELS (weak_pos.x);
          cursor->y = PANGO_PIXELS (weak_pos.y);
          cursor->height = PANGO_PIXELS (weak_pos.height);
-         cursor->is_strong = FALSE;
+         cursor->is_strong = (layout->cursor_direction == GTK_TEXT_DIR_NONE) ? FALSE : TRUE;
          cursor->is_weak = TRUE;
          display->cursors = g_slist_prepend (display->cursors, cursor);
        }