From dac353c09740029c071c0949a49de2eeae471732 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Tue, 26 Sep 2000 23:38:22 +0000 Subject: Fudge the location of a click in the tooltip, so that it selects the 2000-09-27 Iain Holmes * e-cell-text.c: Fudge the location of a click in the tooltip, so that it selects the current cell. Pass keyboard events to the e-table. * e-table-item.c: Don't show the tooltip if the cell is being editted. Also don't destroy the tooltip until the button release event (other wise the e-table-item starts a select) 2000-09-25 Iain Holmes * e-table-header-item.c (draw_button): Calculate the vertical offset correctly to centre text. 2000-09-25 Iain Holmes * e-table-header-item.c (ethi_popup_best_fit): Fill this out to call the "request_width" signal and set the new size. svn path=/trunk/; revision=5599 --- widgets/table/e-cell-text.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'widgets/table/e-cell-text.c') diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 21133b1188..a8d2fa2a92 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -1328,6 +1328,16 @@ tooltip_event (GtkWidget *window, } } + event->button.x = tooltip->cx; + event->button.y = tooltip->cy; + gtk_signal_emit_by_name (GTK_OBJECT (tooltip->eti), "event", + event, &ret_val); + break; + case GDK_KEY_PRESS: + if (tooltip->window){ + gtk_widget_destroy (tooltip->window); + tooltip->window = NULL; + } gtk_signal_emit_by_name (GTK_OBJECT (tooltip->eti), "event", event, &ret_val); break; -- cgit