aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-17 20:39:03 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-17 20:39:03 +0800
commitc47e316032c5e6d916bab7520b4244ff8ca60925 (patch)
treefa09c1f2c80d737bc037c928b74caa32b40d2d89
parentdd121f1314510e318e657dfdbffc1ebcc45b9c55 (diff)
downloadgsoc2013-evolution-c47e316032c5e6d916bab7520b4244ff8ca60925.tar
gsoc2013-evolution-c47e316032c5e6d916bab7520b4244ff8ca60925.tar.gz
gsoc2013-evolution-c47e316032c5e6d916bab7520b4244ff8ca60925.tar.bz2
gsoc2013-evolution-c47e316032c5e6d916bab7520b4244ff8ca60925.tar.lz
gsoc2013-evolution-c47e316032c5e6d916bab7520b4244ff8ca60925.tar.xz
gsoc2013-evolution-c47e316032c5e6d916bab7520b4244ff8ca60925.tar.zst
gsoc2013-evolution-c47e316032c5e6d916bab7520b4244ff8ca60925.zip
Made cells with strikeout on have a line from the left margin to the right
2000-06-17 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Made cells with strikeout on have a line from the left margin to the right margin, instead of just over the text. svn path=/trunk/; revision=3609
-rw-r--r--widgets/e-table/ChangeLog5
-rw-r--r--widgets/e-table/e-cell-text.c12
-rw-r--r--widgets/table/e-cell-text.c12
3 files changed, 13 insertions, 16 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index d699ce3fa9..2b886a31df 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-17 Christopher James Lahey <clahey@helixcode.com>
+
+ * e-cell-text.c: Made cells with strikeout on have a line from the
+ left margin to the right margin, instead of just over the text.
+
2000-06-16 Christopher James Lahey <clahey@helixcode.com>
* e-table.c, e-table.h: Moved the reflow signal handling into an
diff --git a/widgets/e-table/e-cell-text.c b/widgets/e-table/e-cell-text.c
index c9260ad545..23e0dabfc2 100644
--- a/widgets/e-table/e-cell-text.c
+++ b/widgets/e-table/e-cell-text.c
@@ -597,10 +597,8 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
gdk_draw_rectangle (drawable,
text_view->gc,
TRUE,
- xpos + x1, ypos + y1 - (font->ascent / 2),
- gdk_text_width (font,
- lines->text,
- lines->length),
+ x1, ypos + y1 - (font->ascent / 2),
+ x2 - x1,
1);
}
ypos += height;
@@ -680,10 +678,8 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
gdk_draw_rectangle (drawable,
text_view->gc,
TRUE,
- xpos + x1, ypos + y1 - (font->ascent / 2),
- gdk_text_width (font,
- lines->text,
- lines->length),
+ x1, ypos + y1 - (font->ascent / 2),
+ x2 - x1,
1);
}
ypos += height;
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index c9260ad545..23e0dabfc2 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -597,10 +597,8 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
gdk_draw_rectangle (drawable,
text_view->gc,
TRUE,
- xpos + x1, ypos + y1 - (font->ascent / 2),
- gdk_text_width (font,
- lines->text,
- lines->length),
+ x1, ypos + y1 - (font->ascent / 2),
+ x2 - x1,
1);
}
ypos += height;
@@ -680,10 +678,8 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
gdk_draw_rectangle (drawable,
text_view->gc,
TRUE,
- xpos + x1, ypos + y1 - (font->ascent / 2),
- gdk_text_width (font,
- lines->text,
- lines->length),
+ x1, ypos + y1 - (font->ascent / 2),
+ x2 - x1,
1);
}
ypos += height;