wok-6.x view epdfview/stuff/fix-scrolling.patch @ rev 23767
updated firefox-official packages (75.0 -> 76.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat May 09 11:07:16 2020 +0100 (2020-05-09) |
parents | |
children |
line source
1 --- ./src/gtk/MainView.cxx.old 2009-02-28 22:00:55.000000000 +0100
2 +++ ./src/gtk/MainView.cxx 2009-03-20 03:12:10.000000000 +0100
3 @@ -77,7 +77,7 @@
4 static void main_window_zoom_out_cb (GtkWidget *, gpointer);
5 static void main_window_zoom_width_cb (GtkToggleAction *, gpointer);
6 static void main_window_set_page_mode (GtkRadioAction *, GtkRadioAction *, gpointer);
7 -static void main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data);
8 +static gboolean main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data);
10 #if defined (HAVE_CUPS)
11 static void main_window_print_cb (GtkWidget *, gpointer);
12 @@ -1479,18 +1479,19 @@
13 pter->setPageMode (mode);
14 }
16 -void
17 +gboolean
18 main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data)
19 {
20 g_assert ( NULL != data && "The data parameter is NULL.");
22 MainPter *pter = (MainPter *)data;
23 // Only zoom when the CTRL-Button is down...
24 - if ( !(event->state & GDK_CONTROL_MASK) ) return;
25 + if ( !(event->state & GDK_CONTROL_MASK) ) return FALSE;
26 if ( event->direction == GDK_SCROLL_UP ) {
27 pter->zoomInActivated ();
28 } else if ( event->direction == GDK_SCROLL_DOWN ) {
29 pter->zoomOutActivated ();
30 }
31 + return TRUE;
32 }