summaryrefslogtreecommitdiff
path: root/office/epdfview/mouse-scroll-fix.patch
diff options
context:
space:
mode:
authorAndrew Brouwers <abrouwers@gmail.com>2010-05-12 17:44:39 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:44:39 +0200
commitbd49d748a66c5687081b7bb0f24e85102f3b995c (patch)
tree121448221cfbd8547988354271a24f682648d9cd /office/epdfview/mouse-scroll-fix.patch
parent72cb5c3b789f5c28089200b4e8bf6904ec1909dc (diff)
downloadslackbuilds-bd49d748a66c5687081b7bb0f24e85102f3b995c.tar.gz
office/epdfview: Updated for version 0.1.7
Diffstat (limited to 'office/epdfview/mouse-scroll-fix.patch')
-rw-r--r--office/epdfview/mouse-scroll-fix.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/office/epdfview/mouse-scroll-fix.patch b/office/epdfview/mouse-scroll-fix.patch
new file mode 100644
index 0000000000..a440da278e
--- /dev/null
+++ b/office/epdfview/mouse-scroll-fix.patch
@@ -0,0 +1,33 @@
+--- ./src/gtk/MainView.cxx.old 2009-02-28 22:00:55.000000000 +0100
++++ ./src/gtk/MainView.cxx 2009-03-20 03:12:10.000000000 +0100
+@@ -77,7 +77,7 @@
+ static void main_window_zoom_out_cb (GtkWidget *, gpointer);
+ static void main_window_zoom_width_cb (GtkToggleAction *, gpointer);
+ static void main_window_set_page_mode (GtkRadioAction *, GtkRadioAction *, gpointer);
+-static void main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data);
++static gboolean main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data);
+
+ #if defined (HAVE_CUPS)
+ static void main_window_print_cb (GtkWidget *, gpointer);
+@@ -1479,18 +1479,19 @@
+ pter->setPageMode (mode);
+ }
+
+-void
++gboolean
+ main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data)
+ {
+ g_assert ( NULL != data && "The data parameter is NULL.");
+
+ MainPter *pter = (MainPter *)data;
+ // Only zoom when the CTRL-Button is down...
+- if ( !(event->state & GDK_CONTROL_MASK) ) return;
++ if ( !(event->state & GDK_CONTROL_MASK) ) return FALSE;
+ if ( event->direction == GDK_SCROLL_UP ) {
+ pter->zoomInActivated ();
+ } else if ( event->direction == GDK_SCROLL_DOWN ) {
+ pter->zoomOutActivated ();
+ }
++ return TRUE;
+ }
+