[poppler] glib/demo
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sun Mar 9 09:39:13 PDT 2008
glib/demo/images.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 35f34bd44c74eeb76a58b30acfbb0303d7285f06
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date: Sun Mar 9 17:38:54 2008 +0100
Fix build when compiling without cairo support
diff --git a/glib/demo/images.c b/glib/demo/images.c
index a389728..76cfed2 100644
--- a/glib/demo/images.c
+++ b/glib/demo/images.c
@@ -16,6 +16,8 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#include "config.h"
+
#include <gtk/gtk.h>
#include "images.h"
@@ -199,8 +201,10 @@ pgd_images_selection_changed (GtkTreeSelection *treeselection,
IMAGES_ID_COLUMN, &image_id,
-1);
page = poppler_document_get_page (demo->doc, demo->page);
+#if defined (HAVE_CAIRO)
pgd_image_view_set_image (demo->image_view,
poppler_page_get_image (page, image_id));
+#endif
g_object_unref (page);
}
More information about the poppler
mailing list