diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-07-07 23:14:30 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-07-07 23:14:30 +0800 |
commit | 77c108d771fb5f106fc51a1b179b75aaddd1329e (patch) | |
tree | feb01d8c8c99efb652f8f26edabf419446ca51b7 /graphics/epdfview/files | |
parent | 90ac1ba1901df3dda37d47369cfc4ae7b592c564 (diff) | |
download | marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar.gz marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar.bz2 marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar.lz marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar.xz marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.tar.zst marcuscom-ports-77c108d771fb5f106fc51a1b179b75aaddd1329e.zip |
Chase poppler and poppler-glib shlib dump.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14305 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics/epdfview/files')
-rw-r--r-- | graphics/epdfview/files/patch-MainView.cxx | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/graphics/epdfview/files/patch-MainView.cxx b/graphics/epdfview/files/patch-MainView.cxx new file mode 100644 index 000000000..7ef5f1bf6 --- /dev/null +++ b/graphics/epdfview/files/patch-MainView.cxx @@ -0,0 +1,33 @@ +--- src/gtk/MainView.cxx.orig 2009-03-01 05:00:55.000000000 +0800 ++++ src/gtk/MainView.cxx 2009-03-28 12:18:20.000000000 +0800 +@@ -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; + } + |