[gnome-photos] preview-view: Receive motion-notify-events
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] preview-view: Receive motion-notify-events
- Date: Thu, 8 Aug 2013 22:54:24 +0000 (UTC)
commit b9f67518598d03e8b4f1b20d5a728f572466980e
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Aug 8 17:14:30 2013 +0200
preview-view: Receive motion-notify-events
GeglGtkView does not have GDK_POINTER_MOTION_MASK and
GDK_POINTER_MOTION_HINT_MASK set on it. We need those to capture
motion-notify-events.
Fixes: https://bugzilla.gnome.org/705607
src/photos-preview-view.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-preview-view.c b/src/photos-preview-view.c
index dfe5a30..eb2fe77 100644
--- a/src/photos-preview-view.c
+++ b/src/photos-preview-view.c
@@ -201,6 +201,7 @@ photos_preview_view_init (PhotosPreviewView *self)
gtk_style_context_add_class (context, "documents-scrolledwin");
priv->view = GTK_WIDGET (gegl_gtk_view_new ());
+ gtk_widget_add_events (priv->view, GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK);
context = gtk_widget_get_style_context (priv->view);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_VIEW);
gtk_style_context_add_class (context, "content-view");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]