From 4f5d8637a1c46950f36f61005efdd9b81fbebfea Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 4 Jun 2002 05:36:58 +0000 Subject: Reenable tooltips if the GAL_DO_TOOLTIPS environment variable is set. 2002-06-04 Christopher James Lahey * e-table-item.c (eti_event): Reenable tooltips if the GAL_DO_TOOLTIPS environment variable is set. svn path=/trunk/; revision=17097 --- widgets/table/e-cell-text.c | 2 +- widgets/table/e-table-item.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index ee1b333244..edbea905e7 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -1577,7 +1577,7 @@ e_cell_text_class_init (GtkObjectClass *object_class) if (!clipboard_atom) clipboard_atom = gdk_atom_intern ("CLIPBOARD", FALSE); - ellipsis_env = getenv ("GAL_ELLIPSIS"); + ellipsis_env = g_getenv ("GAL_ELLIPSIS"); if (ellipsis_env) { if (*ellipsis_env) { ellipsis_default = g_strdup (ellipsis_env); diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index cffe146622..512586f4d4 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -50,6 +50,7 @@ #define FOCUSED_BORDER 2 #define d(x) +#define DO_TOOLTIPS #if d(!)0 #define e_table_item_leave_edit_(x) (e_table_item_leave_edit((x)), g_print ("%s: e_table_item_leave_edit\n", __FUNCTION__)) @@ -2504,7 +2505,7 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) e_canvas_hide_tooltip (E_CANVAS(GNOME_CANVAS_ITEM(eti)->canvas)); #ifdef DO_TOOLTIPS - if (!g_getenv ("GAL_DONT_DO_TOOLTIPS")) { + if (g_getenv ("GAL_DO_TOOLTIPS")) { if (eti->tooltip->timer > 0) gtk_timeout_remove (eti->tooltip->timer); eti->tooltip->col = col; -- cgit v1.2.3