aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-04-17 00:20:52 +0800
committerChris Lahey <clahey@src.gnome.org>2001-04-17 00:20:52 +0800
commit62e82291e808731ec8d97fffe4528c641d31d939 (patch)
treec52cd6422d51d804643de626d83f56cdf4ba2f3a
parent500f1edcf48fd75b9dfc21c14efd9f58c51de844 (diff)
downloadgsoc2013-evolution-62e82291e808731ec8d97fffe4528c641d31d939.tar
gsoc2013-evolution-62e82291e808731ec8d97fffe4528c641d31d939.tar.gz
gsoc2013-evolution-62e82291e808731ec8d97fffe4528c641d31d939.tar.bz2
gsoc2013-evolution-62e82291e808731ec8d97fffe4528c641d31d939.tar.lz
gsoc2013-evolution-62e82291e808731ec8d97fffe4528c641d31d939.tar.xz
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
-rw-r--r--widgets/table/e-cell-text.c8
-rw-r--r--widgets/text/e-text.c3
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;
}