[eog] Add gtk version check around changes of commit 22618a75
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Add gtk version check around changes of commit 22618a75
- Date: Sun, 18 Mar 2012 17:44:39 +0000 (UTC)
commit b7c5c81df14c1cfe1644228758b1f894cf1253b1
Author: Felix Riemann <friemann gnome org>
Date: Sun Mar 18 18:43:01 2012 +0100
Add gtk version check around changes of commit 22618a75
We use symbols that are not present in earlier GTK+ versions.
src/eog-thumb-nav.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-thumb-nav.c b/src/eog-thumb-nav.c
index 34645bd..ad541e4 100644
--- a/src/eog-thumb-nav.c
+++ b/src/eog-thumb-nav.c
@@ -84,6 +84,7 @@ eog_thumb_nav_scroll_event (GtkWidget *widget, GdkEventScroll *event, gpointer u
case GDK_SCROLL_RIGHT:
break;
+#if GTK_CHECK_VERSION (3, 3, 18)
case GDK_SCROLL_SMOOTH:
{
/* Compatibility code to catch smooth events from mousewheels */
@@ -100,7 +101,7 @@ eog_thumb_nav_scroll_event (GtkWidget *widget, GdkEventScroll *event, gpointer u
inc *= (gint) y_delta;
}
break;
-
+#endif
default:
g_assert_not_reached ();
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]