--- a/src/keyfile.c
+++ b/src/keyfile.c
@@ -688,6 +688,7 @@
 }
 
 
+#ifdef HAVE_VTE
 static void get_setting_color(GKeyFile *config, const gchar *section, const gchar *key,
 		GdkColor *color, const gchar *default_color)
 {
@@ -696,6 +697,7 @@
 		utils_parse_color(default_color, color);
 	g_free(str);
 }
+#endif
 
 
 /* note: new settings should be added in init_pref_groups() */