diff options
author | Alexandre Mazari <amazari@igalia.com> | 2011-04-19 19:00:00 +0800 |
---|---|---|
committer | Xan Lopez <xlopez@igalia.com> | 2011-04-26 06:05:38 +0800 |
commit | bfb72ff6e28aaa22f62dc3364cc560f4215063be (patch) | |
tree | 5362f68ff638945e8c61a6b21e7cf0c97f3702c4 /lib/widgets/gedit-overlay.c | |
parent | 91fc5262d1c669bc8d543ef96d75ba0ba1b7cce0 (diff) | |
download | gsoc2013-epiphany-bfb72ff6e28aaa22f62dc3364cc560f4215063be.tar gsoc2013-epiphany-bfb72ff6e28aaa22f62dc3364cc560f4215063be.tar.gz gsoc2013-epiphany-bfb72ff6e28aaa22f62dc3364cc560f4215063be.tar.bz2 gsoc2013-epiphany-bfb72ff6e28aaa22f62dc3364cc560f4215063be.tar.lz gsoc2013-epiphany-bfb72ff6e28aaa22f62dc3364cc560f4215063be.tar.xz gsoc2013-epiphany-bfb72ff6e28aaa22f62dc3364cc560f4215063be.tar.zst gsoc2013-epiphany-bfb72ff6e28aaa22f62dc3364cc560f4215063be.zip |
Slide out the status overlay when the mouse pointer goes close by.
This introduces a GeditOverlayChild subclass, listening to parent
overlay mouse events to define the escaping policy.
The distance from which the widget "escapes" the mouse pointer
can be set at construction time.
https://bugzilla.gnome.org/show_bug.cgi?id=643909
Diffstat (limited to 'lib/widgets/gedit-overlay.c')
-rw-r--r-- | lib/widgets/gedit-overlay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/widgets/gedit-overlay.c b/lib/widgets/gedit-overlay.c index 28e1010f0..45e783df6 100644 --- a/lib/widgets/gedit-overlay.c +++ b/lib/widgets/gedit-overlay.c @@ -209,7 +209,7 @@ gedit_overlay_realize (GtkWidget *widget) attributes.wclass = GDK_INPUT_OUTPUT; attributes.visual = gtk_widget_get_visual (widget); attributes.event_mask = gtk_widget_get_events (widget); - attributes.event_mask |= GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK; + attributes.event_mask |= GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_LEAVE_NOTIFY_MASK; attributes_mask = GDK_WA_X | GDK_WA_Y; |