aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-01-17 07:08:01 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2012-01-17 07:25:02 +0800
commit9c7ecd319db94e3d382b36708abc9076ae4d9f4f (patch)
treedc75673d4683c4e01fce9583add3032702fc9d0f /embed
parent907fac544a1d407a18b51f430b33154f6b1cbb3c (diff)
downloadgsoc2013-epiphany-9c7ecd319db94e3d382b36708abc9076ae4d9f4f.tar
gsoc2013-epiphany-9c7ecd319db94e3d382b36708abc9076ae4d9f4f.tar.gz
gsoc2013-epiphany-9c7ecd319db94e3d382b36708abc9076ae4d9f4f.tar.bz2
gsoc2013-epiphany-9c7ecd319db94e3d382b36708abc9076ae4d9f4f.tar.lz
gsoc2013-epiphany-9c7ecd319db94e3d382b36708abc9076ae4d9f4f.tar.xz
gsoc2013-epiphany-9c7ecd319db94e3d382b36708abc9076ae4d9f4f.tar.zst
gsoc2013-epiphany-9c7ecd319db94e3d382b36708abc9076ae4d9f4f.zip
embed: add enter/leave events to the GtkOverlay
So the floating bar can listen to enter-notify-event and move accordingly.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index f74e49bfd..1d68bdf58 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);