aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/table/ChangeLog4
-rw-r--r--widgets/table/e-table-item.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog
index 7ebe8f3ab1..90b2ec55cb 100644
--- a/widgets/table/ChangeLog
+++ b/widgets/table/ChangeLog
@@ -1,5 +1,9 @@
2008-01-20 Srinivasa Ragavan <sragavan@novell.com>
+ * e-table-item.c: (eti_draw): Draw the cursor only for multiselection.
+
+2008-01-20 Srinivasa Ragavan <sragavan@novell.com>
+
* e-cell-toggle.c: (etog_new_view), (etog_kill_view), (etog_draw),
(etog_print), (e_cell_toggle_class_init),
(e_cell_toggle_construct): Removed the pixmap cache. It wasn't giving
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index f0fed160d1..c3521836a6 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -2044,13 +2044,13 @@ eti_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int width,
e_cell_draw (ecell_view, drawable, ecol->col_idx, col, row, flags,
xd, yd, xd + ecol->width, yd + height);
- if (!f_found) {
+ if (!f_found && !selected) {
switch (eti->cursor_mode) {
case E_CURSOR_LINE:
if (view_to_model_row(eti, row) == cursor_row) {
f_x1 = floor (eti_base.x) - x;
f_x2 = floor (lower_right.x) - x;
- f_y1 = yd;
+ f_y1 = yd+1;
f_y2 = yd + height;
f_found = TRUE;
}
@@ -2105,7 +2105,7 @@ eti_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int width,
if (eti->draw_focus && f_found) {
gdk_gc_set_ts_origin (eti->focus_gc, f_x1, f_y1);
gdk_draw_rectangle (drawable, eti->focus_gc, FALSE,
- f_x1, f_y1, f_x2 - f_x1 - 1, f_y2 - f_y1 - 1);
+ f_x1, f_y1, f_x2 - f_x1 - 1, f_y2 - f_y1);
}
cairo_destroy (cr);