diff --git a/src/inkview.cpp b/src/inkview.cpp
index fee18612dbab581d113cf25fad3785f90742b703..740a7b77f90c21239b60d50fb6c78936ac492224 100644 (file)
--- a/src/inkview.cpp
+++ b/src/inkview.cpp
usage();
}
+ // Prevents errors like "Unable to wrap GdkPixbuf..." (in nr-filter-image.cpp for example)
+ Gtk::Main::init_gtkmm_internals();
+
Gtk::Main main_instance (&argc, const_cast<char ***>(&argv));
struct SPSlideShow ss;
LIBXML_TEST_VERSION
Inkscape::GC::init();
- Inkscape::Preferences::use_gui = false;
- Inkscape::Preferences::load();
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ prefs->load(false, true); // keep quiet about any failures
gtk_init (&argc, (char ***) &argv);
void inkscape_unref (void) {}
void inkscape_add_document (SPDocument *document) {}
void inkscape_remove_document (SPDocument *document) {}
-Inkscape::XML::Node *inkscape_get_repr (Inkscape::Application *inkscape, const gchar *key) {return NULL;}
#endif