From 40e3cd8538444dd86bbb0ebbfd835d9d2bb7d388 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 19 Apr 2001 23:37:00 +0000 Subject: Turned off information expanders (tooltips) in ETable by default. Turn 2001-04-19 Christopher James Lahey * e-table-item.c: Turned off information expanders (tooltips) in ETable by default. Turn them back on with the environment variable GAL_DO_TOOLTIPS. svn path=/trunk/; revision=9462 --- widgets/table/e-table-item.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 637eaab67b..ed4c6985db 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -1862,13 +1862,15 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) e_canvas_hide_tooltip (E_CANVAS(GNOME_CANVAS_ITEM(eti)->canvas)); #ifdef DO_TOOLTIPS - if (eti->tooltip->timer > 0) - gtk_timeout_remove (eti->tooltip->timer); - eti->tooltip->col = col; - eti->tooltip->row = row; - eti->tooltip->cx = e->motion.x; - eti->tooltip->cy = e->motion.y; - eti->tooltip->timer = gtk_timeout_add (100, (GSourceFunc)_do_tooltip, eti); + if (g_getenv ("GAL_DO_TOOLTIPS")) { + if (eti->tooltip->timer > 0) + gtk_timeout_remove (eti->tooltip->timer); + eti->tooltip->col = col; + eti->tooltip->row = row; + eti->tooltip->cx = e->motion.x; + eti->tooltip->cy = e->motion.y; + eti->tooltip->timer = gtk_timeout_add (100, (GSourceFunc)_do_tooltip, eti); + } #endif if (cursor_row == view_to_model_row(eti, row) && cursor_col == view_to_model_col(eti, col)){ -- cgit v1.2.3