Mystro256 fca0a61
--- a/CMakeLists.txt
Mystro256 fca0a61
+++ b/CMakeLists.txt
Mystro256 fca0a61
@@ -773,18 +773,10 @@ if(NOT DISABLE_WX AND NOT ANDROID)
Mystro256 fca0a61
 		execute_process(COMMAND lsb_release -c -s
Mystro256 fca0a61
 			OUTPUT_VARIABLE DIST_NAME
Mystro256 fca0a61
 			ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
Mystro256 fca0a61
-		if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}
Mystro256 fca0a61
-				VERSION_EQUAL 2.8.2 OR "${DIST_NAME}" STREQUAL "natty")
Mystro256 fca0a61
-			check_lib(GTK2 gtk+-2.0 gtk+-2.0 gtk.h REQUIRED)
Mystro256 fca0a61
-		else()
Mystro256 fca0a61
-			include(FindGTK2)
Mystro256 fca0a61
-			if(GTK2_FOUND)
Mystro256 fca0a61
-				include_directories(${GTK2_INCLUDE_DIRS})
Mystro256 fca0a61
-				list(APPEND LIBS ${GTK2_LIBRARIES})
Mystro256 fca0a61
-			else()
Mystro256 fca0a61
-				message(FATAL_ERROR "GTK is required to build the WX UI. Please install the GTK development libraries.")
Mystro256 fca0a61
-			endif()
Mystro256 fca0a61
-		endif()
Mystro256 fca0a61
+
Mystro256 fca0a61
+		check_lib(GTK3 gtk+-3.0 gtk.h REQUIRED)
Mystro256 fca0a61
+		include_directories(${GTK3_INCLUDE_DIRS})
Mystro256 fca0a61
+		list(APPEND LIBS ${GTK3_LIBRARIES})
Mystro256 fca0a61
 	endif()
Mystro256 fca0a61
 
Mystro256 fca0a61
 	if(wxWidgets_FOUND)