diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-08-03 06:49:04 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-08-03 06:49:04 +0800 |
commit | 4715c96fb61680a2fd424eae96053e2cc0bc3ada (patch) | |
tree | a046abc85b21a126ca80d3cf4c66d1dca34282fe | |
parent | f29b73483cecc138b1cbee31bbd318973abd466e (diff) | |
download | gsoc2013-evolution-4715c96fb61680a2fd424eae96053e2cc0bc3ada.tar.gz gsoc2013-evolution-4715c96fb61680a2fd424eae96053e2cc0bc3ada.tar.zst gsoc2013-evolution-4715c96fb61680a2fd424eae96053e2cc0bc3ada.zip |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | widgets/e-text/e-text.c | 8 | ||||
-rw-r--r-- | widgets/text/e-text.c | 8 |
3 files changed, 19 insertions, 2 deletions
@@ -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. diff --git a/widgets/e-text/e-text.c b/widgets/e-text/e-text.c index 591f6451cf..69c94f9432 100644 --- a/widgets/e-text/e-text.c +++ b/widgets/e-text/e-text.c @@ -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; diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index 591f6451cf..69c94f9432 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -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; |