diff options
Diffstat (limited to 'pango-view')
-rw-r--r-- | pango-view/pango-view.c | 2 | ||||
-rw-r--r-- | pango-view/viewer-cairo.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/pango-view/pango-view.c b/pango-view/pango-view.c index 55a62edc..fec00be9 100644 --- a/pango-view/pango-view.c +++ b/pango-view/pango-view.c @@ -7,7 +7,7 @@ extern const PangoViewer pangoft2_viewer; extern const PangoViewer pangox_viewer; const PangoViewer *viewers[] = { -#ifdef HAVE_CAIRO_XLIB +#ifdef HAVE_CAIRO &pangocairo_viewer, #endif #ifdef HAVE_XFT diff --git a/pango-view/viewer-cairo.c b/pango-view/viewer-cairo.c index 72aae5d5..ae8e01d2 100644 --- a/pango-view/viewer-cairo.c +++ b/pango-view/viewer-cairo.c @@ -30,6 +30,7 @@ #ifdef HAVE_CAIRO_XLIB +#ifdef HAVE_X #include "viewer-x.h" #include <cairo-xlib.h> @@ -72,6 +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_CAIRO_XLIB */ @@ -348,11 +350,13 @@ cairo_viewer_iface_create (const CairoViewerIface **iface) return ret; #ifdef HAVE_CAIRO_XLIB +#ifdef HAVE_X if (opt_display) { *iface = &cairo_x_viewer_iface; return (*iface)->backend_class->create ((*iface)->backend_class); } +#endif /* HAVE_X */ #endif /* HAVE_CAIRO_XLIB */ *iface = &cairo_image_viewer_iface; |