aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-02-16 19:00:23 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-02-16 19:00:23 +0800
commit5f0a7fea0d679915459fb28a98c82d61cb79b673 (patch)
tree8d882acdc94652af6a459b8acbf6ca7b4806aba5 /widgets/table/e-table.c
parent5a7c58ddeb7d9fc5749f0bdf3c4c2f50d0245a58 (diff)
downloadgsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar.gz
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar.bz2
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar.lz
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar.xz
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar.zst
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.zip
** Fix for bug #550114
2009-02-16 Milan Crha <mcrha@redhat.com> ** Fix for bug #550114 * widgets/table/e-table-group.h: * widgets/table/e-table-group.c: * widgets/table/e-table-group-container.c: * widgets/table/e-table-group-leaf.c: Replaced 'compute_mouse_over' with 'get_mouse_over', now works with cached values 'motion_row', 'motion_col'. * widgets/table/e-table.c: (e_table_get_mouse_over_cell): Mouse position not required anymore, remove it too then. * calendar/gui/e-calendar-table.h: (ec_query_tooltip): * calendar/gui/e-calendar-table.c: (ec_query_tooltip): Offer it to others too. * calendar/gui/e-calendar-table.c: (query_tooltip_cb): Use above funtion. Show proper tooltip in table with grouping columns. * calendar/gui/e-memo-table.c: (query_tooltip_cb), (e_memo_table_init): Show tooltips in memo view too. svn path=/trunk/; revision=37275
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index bd2926c682..b2e6b0ecaf 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -2416,20 +2416,18 @@ e_table_get_cell_geometry (ETable *table,
/**
* e_table_get_mouse_over_cell:
- * Similar to e_table_get_cell_at, only here we recalculate x,y relatively to each item.
+ * Similar to e_table_get_cell_at, only here we check based on the mouse motion information in the group.
**/
void
-e_table_get_mouse_over_cell (ETable *table, int x, int y, int *row, int *col)
+e_table_get_mouse_over_cell (ETable *table, int *row, int *col)
{
g_return_if_fail (table != NULL);
g_return_if_fail (E_IS_TABLE (table));
- x += GTK_LAYOUT (table->table_canvas)->hadjustment->value;
- y += GTK_LAYOUT (table->table_canvas)->vadjustment->value;
-
- y -= E_TABLE_HEADER_ITEM (table->header_item)->height;
+ if (!table->group)
+ return;
- e_table_group_compute_mouse_over (table->group, x, y, row, col);
+ e_table_group_get_mouse_over (table->group, row, col);
}
/**