wok-current diff epdfview/stuff/fix-scrolling.patch @ rev 25701
Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Apr 19 12:48:51 2024 +0000 (7 months ago) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/epdfview/stuff/fix-scrolling.patch Fri Apr 19 12:48:51 2024 +0000 1.3 @@ -0,0 +1,33 @@ 1.4 +--- ./src/gtk/MainView.cxx.old 2009-02-28 22:00:55.000000000 +0100 1.5 ++++ ./src/gtk/MainView.cxx 2009-03-20 03:12:10.000000000 +0100 1.6 +@@ -77,7 +77,7 @@ 1.7 + static void main_window_zoom_out_cb (GtkWidget *, gpointer); 1.8 + static void main_window_zoom_width_cb (GtkToggleAction *, gpointer); 1.9 + static void main_window_set_page_mode (GtkRadioAction *, GtkRadioAction *, gpointer); 1.10 +-static void main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data); 1.11 ++static gboolean main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data); 1.12 + 1.13 + #if defined (HAVE_CUPS) 1.14 + static void main_window_print_cb (GtkWidget *, gpointer); 1.15 +@@ -1479,18 +1479,19 @@ 1.16 + pter->setPageMode (mode); 1.17 + } 1.18 + 1.19 +-void 1.20 ++gboolean 1.21 + main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data) 1.22 + { 1.23 + g_assert ( NULL != data && "The data parameter is NULL."); 1.24 + 1.25 + MainPter *pter = (MainPter *)data; 1.26 + // Only zoom when the CTRL-Button is down... 1.27 +- if ( !(event->state & GDK_CONTROL_MASK) ) return; 1.28 ++ if ( !(event->state & GDK_CONTROL_MASK) ) return FALSE; 1.29 + if ( event->direction == GDK_SCROLL_UP ) { 1.30 + pter->zoomInActivated (); 1.31 + } else if ( event->direction == GDK_SCROLL_DOWN ) { 1.32 + pter->zoomOutActivated (); 1.33 + } 1.34 ++ return TRUE; 1.35 + } 1.36 +