[gthumb] Fixed mouse wheel navigation with other viewers as well



commit 9a6ef293db91c87f6a72b42df9686710e30d1e41
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Apr 24 00:06:15 2012 +0200

    Fixed mouse wheel navigation with other viewers as well

 extensions/file_viewer/gth-file-viewer-page.c      |    1 +
 extensions/gstreamer_tools/gth-media-viewer-page.c |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/extensions/file_viewer/gth-file-viewer-page.c b/extensions/file_viewer/gth-file-viewer-page.c
index 0486f5d..0da4ef7 100644
--- a/extensions/file_viewer/gth-file-viewer-page.c
+++ b/extensions/file_viewer/gth-file-viewer-page.c
@@ -105,6 +105,7 @@ gth_file_viewer_page_real_activate (GthViewerPage *base,
 	self->priv->thumb_loader = gth_thumb_loader_new (128);
 
 	self->priv->viewer = gtk_event_box_new ();
+	gtk_widget_add_events (self->priv->viewer, GDK_SCROLL_MASK);
 	gtk_widget_show (self->priv->viewer);
 
 	vbox1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
diff --git a/extensions/gstreamer_tools/gth-media-viewer-page.c b/extensions/gstreamer_tools/gth-media-viewer-page.c
index 597afcd..5518417 100644
--- a/extensions/gstreamer_tools/gth-media-viewer-page.c
+++ b/extensions/gstreamer_tools/gth-media-viewer-page.c
@@ -728,7 +728,8 @@ gth_media_viewer_page_real_activate (GthViewerPage *base,
 						  | GDK_BUTTON_RELEASE_MASK
 						  | GDK_POINTER_MOTION_MASK
 						  | GDK_POINTER_MOTION_HINT_MASK
-						  | GDK_BUTTON_MOTION_MASK));
+						  | GDK_BUTTON_MOTION_MASK
+						  | GDK_SCROLL_MASK));
 	gtk_widget_set_can_focus (self->priv->area, TRUE);
 	gtk_widget_show (self->priv->area);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]