#include "gtk/inputdialog.h"
#include "mimeview.h"
#include "summaryview.h"
+#include "file-utils.h"
#ifndef POPPLER_WITH_GDK
#include "stdbool.h"
#endif
static gboolean pdf_viewer_scroll_page(MimeViewer *_viewer, gboolean up);
static void pdf_viewer_scroll_one_line(MimeViewer *_viewer, gboolean up);
-/** Claws-Mail Plugin functions*/
+/** Claws Mail Plugin functions */
gint plugin_init(gchar **error);
const gchar *plugin_name(void);
const gchar *plugin_desc(void);
in_scroll_cb = TRUE;
+ if ((event->state & GDK_CONTROL_MASK) == GDK_CONTROL_MASK) {
+ if (event->direction == GDK_SCROLL_UP) {
+ pdf_viewer_button_zoom_in_cb(NULL, viewer);
+ } else {
+ pdf_viewer_button_zoom_out_cb(NULL, viewer);
+ }
+ in_scroll_cb = FALSE;
+ return TRUE;
+ }
+
if (event->direction == GDK_SCROLL_UP &&
gtk_adjustment_get_value(adj) == gtk_adjustment_get_lower(adj) &&
cur_p > 1) {