Commit c78f465b authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

When in split cursor mode, always add the cursor as both strong and weak

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.
parent 8b4034d8
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
......
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
......
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
......
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
......
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
......
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
......
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
......
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment