diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2008-01-20 23:16:36 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2008-01-20 23:16:36 +0800 |
commit | b1b5f74d32e47a1fee6149c9054983c8958d1dc0 (patch) | |
tree | d1a9ce0b925371ecd3b99abe5041098305685e09 | |
parent | 3cd4770b9fcc2cfd6218514ccb87df6e56742166 (diff) | |
download | gsoc2013-evolution-b1b5f74d32e47a1fee6149c9054983c8958d1dc0.tar gsoc2013-evolution-b1b5f74d32e47a1fee6149c9054983c8958d1dc0.tar.gz gsoc2013-evolution-b1b5f74d32e47a1fee6149c9054983c8958d1dc0.tar.bz2 gsoc2013-evolution-b1b5f74d32e47a1fee6149c9054983c8958d1dc0.tar.lz gsoc2013-evolution-b1b5f74d32e47a1fee6149c9054983c8958d1dc0.tar.xz gsoc2013-evolution-b1b5f74d32e47a1fee6149c9054983c8958d1dc0.tar.zst gsoc2013-evolution-b1b5f74d32e47a1fee6149c9054983c8958d1dc0.zip |
Draw the cursor only for multiselection.
2008-01-20 Srinivasa Ragavan <sragavan@novell.com>
* e-table-item.c: (eti_draw): Draw the cursor only for multiselection.
svn path=/trunk/; revision=34859
-rw-r--r-- | widgets/table/ChangeLog | 4 | ||||
-rw-r--r-- | widgets/table/e-table-item.c | 6 |
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); |