[evince/wip/app] libview: Fix compiler warnings
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/app] libview: Fix compiler warnings
- Date: Tue, 12 Jun 2012 23:18:03 +0000 (UTC)
commit 65cf265a97544cb2a78c602ab05d1c5edc40a589
Author: Christian Persch <chpe gnome org>
Date: Wed Jun 13 01:16:42 2012 +0200
libview: Fix compiler warnings
Add dummy handling of the GDK_SCROLL_SMOOTH direction.
libview/ev-view-presentation.c | 2 ++
libview/ev-view.c | 5 +++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index e978b75..6efeeb6 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -1308,6 +1308,8 @@ ev_view_presentation_scroll_event (GtkWidget *widget,
case GDK_SCROLL_LEFT:
ev_view_presentation_change_page (pview, GTK_SCROLL_PAGE_BACKWARD);
break;
+ case GDK_SCROLL_SMOOTH:
+ return FALSE;
}
return TRUE;
diff --git a/libview/ev-view.c b/libview/ev-view.c
index b096285..4b59518 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3288,6 +3288,9 @@ ev_view_scroll_event (GtkWidget *widget, GdkEventScroll *event)
EvView *view = EV_VIEW (widget);
guint state;
+ if (event->direction == GDK_SCROLL_SMOOTH)
+ return FALSE;
+
state = event->state & gtk_accelerator_get_default_mod_mask ();
if (state == GDK_CONTROL_MASK) {
@@ -3333,6 +3336,8 @@ ev_view_scroll_event (GtkWidget *widget, GdkEventScroll *event)
case GDK_SCROLL_LEFT:
ev_view_previous_page (view);
break;
+ case GDK_SCROLL_SMOOTH:
+ g_assert_not_reached ();
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]