Use GTK_VERSION_MAJOR to switch between GTK+ version two and three
authorTony <exocoder@gmail.com>
Mon, 31 Mar 2014 21:05:09 +0000 (22:05 +0100)
committerTony <exocoder@gmail.com>
Mon, 31 Mar 2014 21:05:09 +0000 (22:05 +0100)
commit7f671406db37ae03259eddd218079a5afd121bd3
treedbf7799dd9b4782dd584eff37c43730ebdba35cb
parent41b8ab086be19b94f3f52d21a5e69ab41b4b4b97
Use GTK_VERSION_MAJOR to switch between  GTK+ version two and three
specific code. As a result of this, HAVE_GTK3 no longer needs to be
exposed.

The use of HAVE_GTK, and HAVE_ GTK3 have been changed to mirror the
method used by HAVE_QT and HAVE_QT5.
 On branch gtk3
 Changes to be committed:
        modified:   CMakeLists.txt
        modified:   cmake/OpenCVFindLibsGUI.cmake
        modified:   cmake/templates/cvconfig.h.in
        modified:   modules/highgui/src/window.cpp
        modified:   modules/highgui/src/window_gtk.cpp
CMakeLists.txt
cmake/OpenCVFindLibsGUI.cmake
cmake/templates/cvconfig.h.in
modules/highgui/src/window.cpp
modules/highgui/src/window_gtk.cpp