diff --git a/src/inkview.cpp b/src/inkview.cpp
index ade2b6d427d39f43ead661870e785dbd7f98e6a3..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::loadSkeleton();
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ prefs->load(false, true); // keep quiet about any failures
gtk_init (&argc, (char ***) &argv);
ss.fullscreen = false;
inkscape = (Inkscape::Application *)g_object_new (SP_TYPE_INKSCAPE, NULL);
- Inkscape::Preferences::load();
// starting at where the commandline options stopped parsing because
// we want all the files to be in the list
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