Made clicking choose the right character even if show_borders is on.

2000-08-02  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Made clicking choose the right
	character even if show_borders is on.

svn path=/trunk/; revision=4492
This commit is contained in:
Christopher James Lahey
2000-08-02 22:49:04 +00:00
committed by Chris Lahey
parent f29b73483c
commit 4715c96fb6
3 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-08-02 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-text/e-text.c: Made clicking choose the right
character even if show_borders is on.
2000-08-01 Dan Winship <danw@helixcode.com>
* configure.in, acconfig.h: Add checks for GPG, PGP 5 and PGP 2.

View File

@ -1580,12 +1580,15 @@ get_line_xpos_item_relative (EText *text, struct line *line)
break;
default:
if (text->draw_borders)
x += BORDER_INDENT;
/* For GTK_JUSTIFY_LEFT, we don't have to do anything. We do not support
* GTK_JUSTIFY_FILL, yet.
*/
break;
}
return x;
}
@ -2187,6 +2190,9 @@ _get_position_from_xy (EText *text, gint x, gint y)
y += text->yofs_edit;
if (text->draw_borders)
ypos += BORDER_INDENT;
j = 0;
while (y > ypos) {
ypos += text->font->ascent + text->font->descent;

View File

@ -1580,12 +1580,15 @@ get_line_xpos_item_relative (EText *text, struct line *line)
break;
default:
if (text->draw_borders)
x += BORDER_INDENT;
/* For GTK_JUSTIFY_LEFT, we don't have to do anything. We do not support
* GTK_JUSTIFY_FILL, yet.
*/
break;
}
return x;
}
@ -2187,6 +2190,9 @@ _get_position_from_xy (EText *text, gint x, gint y)
y += text->yofs_edit;
if (text->draw_borders)
ypos += BORDER_INDENT;
j = 0;
while (y > ypos) {
ypos += text->font->ascent + text->font->descent;