[epiphany] embed: add enter/leave events to the GtkOverlay
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] embed: add enter/leave events to the GtkOverlay
- Date: Mon, 16 Jan 2012 23:25:20 +0000 (UTC)
commit 9c7ecd319db94e3d382b36708abc9076ae4d9f4f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jan 16 18:08:01 2012 -0500
embed: add enter/leave events to the GtkOverlay
So the floating bar can listen to enter-notify-event and move
accordingly.
embed/ephy-embed.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index f74e49b..1d68bdf 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -566,6 +566,9 @@ ephy_embed_constructed (GObject *object)
web_view = WEBKIT_WEB_VIEW (ephy_web_view_new ());
scrolled_window = GTK_WIDGET (embed->priv->scrolled_window);
overlay = gtk_overlay_new ();
+ gtk_widget_add_events (overlay,
+ GDK_ENTER_NOTIFY_MASK |
+ GDK_LEAVE_NOTIFY_MASK);
gtk_widget_set_name (overlay, "ephy-overlay");
gtk_container_add (GTK_CONTAINER (overlay), scrolled_window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]