2009-03-16 [paul] 3.7.1cvs17
[claws.git] / src / prefs_customheader.c
index 75499b09c1114f584c03884663301538dee084f7..ccd66a88bee1abadd97432d15adc733f7e447134 100644 (file)
@@ -921,7 +921,9 @@ static gboolean prefs_custom_header_selected(GtkTreeSelection *selector,
                gtk_object_ref (G_OBJECT(preview));
                gtk_object_sink (G_OBJECT(preview));
 #endif
-       } else if (!g_strcmp0("X-Face", ch->name)) {
+       } 
+#if HAVE_LIBCOMPFACE
+else if (!g_strcmp0("X-Face", ch->name)) {
                GdkColor color;
                color.pixel = 0;
                preview = GTK_IMAGE(xface_get_from_header(ch->value, 
@@ -936,7 +938,9 @@ static gboolean prefs_custom_header_selected(GtkTreeSelection *selector,
                gtk_object_ref (G_OBJECT(preview));
                gtk_object_sink (G_OBJECT(preview));
 #endif
-       } else {
+       } 
+#endif
+else {
                gtk_widget_hide(customhdr.preview);
        }
        return TRUE;