Minor
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 22 Aug 2012 13:25:52 +0000 (09:25 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 23 Aug 2012 14:55:38 +0000 (10:55 -0400)
pango-view/viewer-cairo.c

index ae8e01d..707a8c8 100644 (file)
@@ -30,7 +30,7 @@
 
 
 #ifdef HAVE_CAIRO_XLIB
-#ifdef HAVE_X
+#ifdef HAVE_XFT
 #include "viewer-x.h"
 #include <cairo-xlib.h>
 
@@ -73,7 +73,7 @@ static CairoViewerIface cairo_x_viewer_iface = {
   cairo_x_view_iface_create_surface,
   cairo_x_view_iface_paint_background
 };
-#endif /* HAVE_X */
+#endif /* HAVE_XFT */
 #endif /* HAVE_CAIRO_XLIB */
 
 
@@ -350,13 +350,13 @@ cairo_viewer_iface_create (const CairoViewerIface **iface)
     return ret;
 
 #ifdef HAVE_CAIRO_XLIB
-#ifdef HAVE_X
+#ifdef HAVE_XFT
   if (opt_display)
     {
       *iface = &cairo_x_viewer_iface;
       return (*iface)->backend_class->create ((*iface)->backend_class);
     }
-#endif /* HAVE_X */
+#endif /* HAVE_XFT */
 #endif /* HAVE_CAIRO_XLIB */
 
   *iface = &cairo_image_viewer_iface;