wok-next rev 8512

Added patch to fixed epdfview so mouse scrolling works.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 12 02:36:49 2011 +0000 (2011-02-12)
parents 056701872188
children bb74eecd3d4c
files epdfview/receipt epdfview/stuff/fix-scrolling.patch
line diff
     1.1 --- a/epdfview/receipt	Fri Feb 11 22:14:53 2011 +0000
     1.2 +++ b/epdfview/receipt	Sat Feb 12 02:36:49 2011 +0000
     1.3 @@ -16,6 +16,7 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 +	patch -Np0 -i ../stuff/fix-scrolling.patch
     1.8  	./configure \
     1.9  		--prefix=/usr \
    1.10  		--infodir=/usr/share/info \
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/epdfview/stuff/fix-scrolling.patch	Sat Feb 12 02:36:49 2011 +0000
     2.3 @@ -0,0 +1,33 @@
     2.4 +--- ./src/gtk/MainView.cxx.old	2009-02-28 22:00:55.000000000 +0100
     2.5 ++++ ./src/gtk/MainView.cxx	2009-03-20 03:12:10.000000000 +0100
     2.6 +@@ -77,7 +77,7 @@
     2.7 + static void main_window_zoom_out_cb (GtkWidget *, gpointer);
     2.8 + static void main_window_zoom_width_cb (GtkToggleAction *, gpointer);
     2.9 + static void main_window_set_page_mode (GtkRadioAction *, GtkRadioAction *, gpointer);
    2.10 +-static void main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data);
    2.11 ++static gboolean main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data);
    2.12 + 
    2.13 + #if defined (HAVE_CUPS)
    2.14 + static void main_window_print_cb (GtkWidget *, gpointer);
    2.15 +@@ -1479,18 +1479,19 @@
    2.16 +     pter->setPageMode (mode);
    2.17 + }
    2.18 + 
    2.19 +-void 
    2.20 ++gboolean
    2.21 + main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data)
    2.22 + {
    2.23 +     g_assert ( NULL != data && "The data parameter is NULL.");
    2.24 + 
    2.25 +     MainPter *pter = (MainPter *)data;
    2.26 +     // Only zoom when the CTRL-Button is down...
    2.27 +-    if ( !(event->state & GDK_CONTROL_MASK) ) return;
    2.28 ++    if ( !(event->state & GDK_CONTROL_MASK) ) return FALSE;
    2.29 +     if ( event->direction == GDK_SCROLL_UP ) {
    2.30 +         pter->zoomInActivated ();
    2.31 +     } else if ( event->direction == GDK_SCROLL_DOWN ) {
    2.32 +         pter->zoomOutActivated ();
    2.33 +     }
    2.34 ++    return TRUE;
    2.35 + }
    2.36 +