aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-04-27 03:28:39 +0800
committerXan Lopez <xlopez@igalia.com>2011-04-27 03:28:39 +0800
commit14bcb3b6d08fcb2d84b836d70fb2c9d25604779b (patch)
tree852a83651a767c6d54293f87e300c68d21af1fb5 /lib
parentbfb72ff6e28aaa22f62dc3364cc560f4215063be (diff)
downloadgsoc2013-epiphany-14bcb3b6d08fcb2d84b836d70fb2c9d25604779b.tar
gsoc2013-epiphany-14bcb3b6d08fcb2d84b836d70fb2c9d25604779b.tar.gz
gsoc2013-epiphany-14bcb3b6d08fcb2d84b836d70fb2c9d25604779b.tar.bz2
gsoc2013-epiphany-14bcb3b6d08fcb2d84b836d70fb2c9d25604779b.tar.lz
gsoc2013-epiphany-14bcb3b6d08fcb2d84b836d70fb2c9d25604779b.tar.xz
gsoc2013-epiphany-14bcb3b6d08fcb2d84b836d70fb2c9d25604779b.tar.zst
gsoc2013-epiphany-14bcb3b6d08fcb2d84b836d70fb2c9d25604779b.zip
ephy-overlay-escaping-child: fix warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-overlay-escaping-child.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/widgets/ephy-overlay-escaping-child.c b/lib/widgets/ephy-overlay-escaping-child.c
index 65ce8322e..c321d9282 100644
--- a/lib/widgets/ephy-overlay-escaping-child.c
+++ b/lib/widgets/ephy-overlay-escaping-child.c
@@ -1,5 +1,5 @@
+/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
- *
* Copyright © 2011 Igalia S.L.
*
* This library is free software; you can redistribute it and/or
@@ -184,10 +184,15 @@ ephy_overlay_escaping_child_motion_notify_event (GtkWidget *widget,
static void
ephy_overlay_escaping_child_realize (GtkWidget *widget)
{
+ GdkWindow *window;
+ GdkEventMask events;
+
GTK_WIDGET_CLASS (ephy_overlay_escaping_child_parent_class)->realize (widget);
- GdkWindow *window = gtk_widget_get_window (widget);
- GdkEventMask events = gdk_window_get_events (window);
+
+ window = gtk_widget_get_window (widget);
+ events = gdk_window_get_events (window);
events |= GDK_POINTER_MOTION_MASK;
+
gdk_window_set_events (window, events);
}