From a4e97120060bbe77aaa782e00d2e58dc308e151b Mon Sep 17 00:00:00 2001
From: Alexandr Kondratev <theg4sh@gmail.com>
Date: Mon, 27 Jun 2016 13:34:41 +0300
Subject: [PATCH] Compilate switch-case with GTK_SCROLL_SMOOTH since GTK>=3.4

---
 modules/highgui/src/window_gtk.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/highgui/src/window_gtk.cpp b/modules/highgui/src/window_gtk.cpp
index 928118e225..249d452e8d 100644
--- a/modules/highgui/src/window_gtk.cpp
+++ b/modules/highgui/src/window_gtk.cpp
@@ -1993,8 +1993,10 @@ static gboolean icvOnMouse( GtkWidget *widget, GdkEvent *event, gpointer user_da
                 case GDK_SCROLL_LEFT:  orient = CV_EVENT_MOUSEHWHEEL;
                 case GDK_SCROLL_DOWN:  flags |= ((-1 << 16) | orient);
                     break;
+#if (GTK_MAJOR_VERSION > 3 or (GTK_MAJOR_VERSION == 3 and GTK_MINOR_VERSION >= 4))
                 case GDK_SCROLL_SMOOTH: // to prevent make warning; TODO
                     ;
+#endif //GTK_MAJOR_VERSION > 3 or (GTK_MAJOR_VERSION == 3 and GTK_MINOR_VERSION >= 4)
                 };
             };
             flags = flags |