From ffc918bd2cbe83ea43b0482eaa8aa4bc90f438b4 Mon Sep 17 00:00:00 2001 From: bryce Date: Sat, 5 Jan 2008 09:30:33 +0000 Subject: [PATCH] Fixing up a few more files --- src/debug/simple-event.h | 2 +- src/display/bezier-utils.cpp | 2 +- src/extension/init.cpp | 5 +++++ src/extension/input.cpp | 6 +++++- src/extension/internal/pdf-input-cairo.cpp | 2 ++ src/libnr/nr-matrix.h | 2 +- 6 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/debug/simple-event.h b/src/debug/simple-event.h index 3126f10f1..74301a609 100644 --- a/src/debug/simple-event.h +++ b/src/debug/simple-event.h @@ -14,7 +14,7 @@ #include #include -#include +#include // g_assert() #include #include diff --git a/src/display/bezier-utils.cpp b/src/display/bezier-utils.cpp index 95b1a5eb1..3a9aa415f 100644 --- a/src/display/bezier-utils.cpp +++ b/src/display/bezier-utils.cpp @@ -33,7 +33,7 @@ # include #endif -#include +#include // g_assert() #include #include #include "bezier-utils.h" diff --git a/src/extension/init.cpp b/src/extension/init.cpp index 852b7ce70..3fe3115c0 100644 --- a/src/extension/init.cpp +++ b/src/extension/init.cpp @@ -151,6 +151,8 @@ update_pref(gchar const *pref_path, gchar const *pref_attr, void init() { + printf("Initting inputs\n"); + /* TODO: Change to Internal */ Internal::Svg::init(); Internal::Svgz::init(); @@ -167,10 +169,13 @@ init() Internal::CairoPsOutput::init(); #endif #ifdef HAVE_POPPLER + printf("Initting PdfInput for poppler"); Internal::PdfInput::init(); #endif #ifdef HAVE_POPPLER_GLIB + printf("We have POPPLER GLIB\n"); if (1) { + printf("Initting PdfInputCairo\n"); Internal::PdfInputCairo::init(); } #endif diff --git a/src/extension/input.cpp b/src/extension/input.cpp index e17c690aa..5c8f8d57f 100644 --- a/src/extension/input.cpp +++ b/src/extension/input.cpp @@ -44,7 +44,9 @@ Input::Input (Inkscape::XML::Node * in_repr, Implementation::Implementation * in extension = NULL; filetypename = NULL; filetypetooltip = NULL; - output_extension = NULL; + output_extension = NULL; + + printf("Input::Input\n"); if (repr != NULL) { Inkscape::XML::Node * child_repr; @@ -145,6 +147,8 @@ Input::check (void) SPDocument * Input::open (const gchar *uri) { + printf("Input::open\n"); + if (!loaded()) { set_state(Extension::STATE_LOADED); } diff --git a/src/extension/internal/pdf-input-cairo.cpp b/src/extension/internal/pdf-input-cairo.cpp index 90ac9294b..8069f9cf3 100644 --- a/src/extension/internal/pdf-input-cairo.cpp +++ b/src/extension/internal/pdf-input-cairo.cpp @@ -35,6 +35,8 @@ static cairo_status_t _write_ustring_cb(void *closure, const unsigned char *data SPDocument * PdfInputCairo::open(Inkscape::Extension::Input * mod, const gchar * uri) { + printf("Attempting to open using PdfInputCairo\n"); + gchar* filename_uri = g_filename_to_uri(uri, NULL, NULL); PopplerDocument* document = poppler_document_new_from_file(filename_uri, NULL, NULL); diff --git a/src/libnr/nr-matrix.h b/src/libnr/nr-matrix.h index 0205ab04f..f4164d3e7 100644 --- a/src/libnr/nr-matrix.h +++ b/src/libnr/nr-matrix.h @@ -17,7 +17,7 @@ * This code is in public domain. */ -#include +#include // g_assert() #include #include "libnr/nr-coord.h" -- 2.30.2