diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-04-17 00:20:52 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-04-17 00:20:52 +0800 |
commit | 62e82291e808731ec8d97fffe4528c641d31d939 (patch) | |
tree | c52cd6422d51d804643de626d83f56cdf4ba2f3a /widgets | |
parent | 500f1edcf48fd75b9dfc21c14efd9f58c51de844 (diff) | |
download | gsoc2013-evolution-62e82291e808731ec8d97fffe4528c641d31d939.tar.gz gsoc2013-evolution-62e82291e808731ec8d97fffe4528c641d31d939.tar.zst gsoc2013-evolution-62e82291e808731ec8d97fffe4528c641d31d939.zip |
Propagate the event after sending it to the base EText.
2001-04-16 Christopher James Lahey <clahey@ximian.com>
* gal/e-text/e-text.c (tooltip_event): Propagate the event after
sending it to the base EText.
svn path=/trunk/; revision=9379
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/e-cell-text.c | 8 | ||||
-rw-r--r-- | widgets/text/e-text.c | 3 |
2 files changed, 10 insertions, 1 deletions
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; } |