]> granicus.if.org Git - graphviz/commitdiff
disable gdk_pixbuf plugin if pangocairo not available.
authorellson <devnull@localhost>
Wed, 6 Feb 2008 20:28:50 +0000 (20:28 +0000)
committerellson <devnull@localhost>
Wed, 6 Feb 2008 20:28:50 +0000 (20:28 +0000)
plugin/gdk_pixbuf/gvdevice_gdk_pixbuf.c

index 99d70e069cb2593ddf2fb92377656962cdcdbd8f..399805168357b771666c2f345a572afb1c3bf111 100644 (file)
@@ -19,6 +19,7 @@
 #endif
 
 #include "gvplugin_device.h"
+#ifdef HAVE_PANGOCAIRO
 #include <gdk-pixbuf/gdk-pixbuf.h>
 
 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}
 };