From: ellson Date: Wed, 6 Feb 2008 20:28:50 +0000 (+0000) Subject: disable gdk_pixbuf plugin if pangocairo not available. X-Git-Tag: LAST_LIBGRAPH~32^2~4757 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6668a8ac1bce91c29b73fb2b8b4b5eaa7e40b1d2;p=graphviz disable gdk_pixbuf plugin if pangocairo not available. --- diff --git a/plugin/gdk_pixbuf/gvdevice_gdk_pixbuf.c b/plugin/gdk_pixbuf/gvdevice_gdk_pixbuf.c index 99d70e069..399805168 100644 --- a/plugin/gdk_pixbuf/gvdevice_gdk_pixbuf.c +++ b/plugin/gdk_pixbuf/gvdevice_gdk_pixbuf.c @@ -19,6 +19,7 @@ #endif #include "gvplugin_device.h" +#ifdef HAVE_PANGOCAIRO #include typedef enum { @@ -124,8 +125,10 @@ static gvdevice_features_t device_features_gdk_pixbuf = { {0.,0.}, /* default page width, height - points */ {96.,96.}, /* dpi */ }; +#endif gvplugin_installed_t gvdevice_gdk_pixbuf_types[] = { +#ifdef HAVE_PANGOCAIRO {FORMAT_BMP, "bmp:cairo", 4, &gdk_pixbuf_engine, &device_features_gdk_pixbuf}, {FORMAT_ICO, "ico:cairo", 4, &gdk_pixbuf_engine, &device_features_gdk_pixbuf}, {FORMAT_JPEG, "jpe:cairo", 4, &gdk_pixbuf_engine, &device_features_gdk_pixbuf}, @@ -134,5 +137,6 @@ gvplugin_installed_t gvdevice_gdk_pixbuf_types[] = { {FORMAT_PNG, "png:cairo", 4, &gdk_pixbuf_engine, &device_features_gdk_pixbuf}, {FORMAT_TIFF, "tif:cairo", 4, &gdk_pixbuf_engine, &device_features_gdk_pixbuf}, {FORMAT_TIFF, "tiff:cairo", 4, &gdk_pixbuf_engine, &device_features_gdk_pixbuf}, +#endif {0, NULL, 0, NULL, NULL} };