summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_search_input_controller.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_search_input_controller.cc b/tests/test_search_input_controller.cc
index 8b01da0a..77048282 100644
--- a/tests/test_search_input_controller.cc
+++ b/tests/test_search_input_controller.cc
@@ -17,6 +17,8 @@
// the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
+#ifdef HAVE_GTK
+
#include <generic/apt/matching/compare_patterns.h>
#include <generic/apt/matching/pattern.h>
#include <gtk/controllers/search_input.h>
@@ -146,3 +148,5 @@ BOOST_FIXTURE_TEST_CASE(testEnteringCorrectTextSearches, SearchInputTest)
get_controller()->enter_text(p_text);
}
+
+#endif // HAVE_GTK