From b1b5f74d32e47a1fee6149c9054983c8958d1dc0 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Sun, 20 Jan 2008 15:16:36 +0000 Subject: Draw the cursor only for multiselection. 2008-01-20 Srinivasa Ragavan * e-table-item.c: (eti_draw): Draw the cursor only for multiselection. svn path=/trunk/; revision=34859 --- widgets/table/ChangeLog | 4 ++++ widgets/table/e-table-item.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'widgets') diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog index 7ebe8f3ab1..90b2ec55cb 100644 --- a/widgets/table/ChangeLog +++ b/widgets/table/ChangeLog @@ -1,3 +1,7 @@ +2008-01-20 Srinivasa Ragavan + + * e-table-item.c: (eti_draw): Draw the cursor only for multiselection. + 2008-01-20 Srinivasa Ragavan * e-cell-toggle.c: (etog_new_view), (etog_kill_view), (etog_draw), 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); -- cgit