From 62e82291e808731ec8d97fffe4528c641d31d939 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 16 Apr 2001 16:20:52 +0000 Subject: Propagate the event after sending it to the base EText. 2001-04-16 Christopher James Lahey * gal/e-text/e-text.c (tooltip_event): Propagate the event after sending it to the base EText. svn path=/trunk/; revision=9379 --- widgets/table/e-cell-text.c | 8 +++++++- widgets/text/e-text.c | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 5136c4e8fc..f82e0b60ae 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -1116,16 +1116,22 @@ tooltip_event (GtkWidget *window, event->button.y = tooltip->cy; gtk_signal_emit_by_name (GTK_OBJECT (tooltip->eti), "event", event, &ret_val); + if (!ret_val) + gtk_propagate_event (GTK_WIDGET(GNOME_CANVAS_ITEM(tooltip->eti)->canvas), event); + ret_val = TRUE; break; case GDK_KEY_PRESS: e_canvas_hide_tooltip (E_CANVAS(GNOME_CANVAS_ITEM(tooltip->eti)->canvas)); gtk_signal_emit_by_name (GTK_OBJECT (tooltip->eti), "event", event, &ret_val); + if (!ret_val) + gtk_propagate_event (GTK_WIDGET(GNOME_CANVAS_ITEM(tooltip->eti)->canvas), event); + ret_val = TRUE; break; default: break; } - + return ret_val; } diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index e59bde6b7f..ceb09ab25d 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -2702,6 +2702,9 @@ tooltip_event(GtkWidget *tooltip, GdkEvent *event, EText *text) /* Forward events to the text item */ gtk_signal_emit_by_name (GTK_OBJECT (text), "event", event, &ret_val); + if (!ret_val) + gtk_propagate_event (GTK_WIDGET(GNOME_CANVAS_ITEM(text)->canvas), event); + ret_val = TRUE; default: break; } -- cgit v1.2.3