aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-tree.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2000-09-18 01:18:04 +0800
committerIain Holmes <iain@src.gnome.org>2000-09-18 01:18:04 +0800
commit13679221973a960628aa73dfa289b591e0de27e1 (patch)
tree71eddbe6d5750554a238e76ef8420295fdb4d761 /widgets/table/e-cell-tree.c
parent0d2998b1a1f8af2b6938d4dd40873ef80095844d (diff)
downloadgsoc2013-evolution-13679221973a960628aa73dfa289b591e0de27e1.tar.gz
gsoc2013-evolution-13679221973a960628aa73dfa289b591e0de27e1.tar.zst
gsoc2013-evolution-13679221973a960628aa73dfa289b591e0de27e1.zip
Better calculations for tooltip positions
svn path=/trunk/; revision=5477
Diffstat (limited to 'widgets/table/e-cell-tree.c')
-rw-r--r--widgets/table/e-cell-tree.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/widgets/table/e-cell-tree.c b/widgets/table/e-cell-tree.c
index 6d8ff72cca..706551d7ad 100644
--- a/widgets/table/e-cell-tree.c
+++ b/widgets/table/e-cell-tree.c
@@ -421,10 +421,16 @@ ect_show_tooltip (ECellView *ecell_view, int model_col, int view_col, int row,
ETreeModel *tree_model = e_cell_tree_get_tree_model (ecell_view->e_table_model, row);
ETreePath *node = e_cell_tree_get_node (tree_model, row);
int offset = offset_of_node (tree_model, node);
-
+ GdkPixbuf *node_image;
+
+ node_image = e_tree_model_icon_of_node (tree_model, node);
+ if (node_image)
+ offset += gdk_pixbuf_get_width (node_image);
+
/* if the tooltip happened in the subcell, then handle it */
if (tooltip->cx > offset) {
+ tooltip->x += offset;
e_cell_show_tooltip (tree_view->subcell_view, model_col, view_col, row, tooltip);
}
}