From 7cff29615374c1b9d7e7e88cf9cbe787b5c732e1 Mon Sep 17 00:00:00 2001 From: jaspervdg Date: Sat, 10 Jan 2009 16:25:06 +0000 Subject: [PATCH] Fixes rendering of feImage (using bitmaps) by preventing the error "Unable to wrap GdkPixbuf". --- src/inkview.cpp | 3 +++ src/main.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/inkview.cpp b/src/inkview.cpp index d19244911..740a7b77f 100644 --- a/src/inkview.cpp +++ b/src/inkview.cpp @@ -178,6 +178,9 @@ main (int argc, const char **argv) 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(&argv)); struct SPSlideShow ss; diff --git a/src/main.cpp b/src/main.cpp index eb1a0b103..89590a5f4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -562,6 +562,9 @@ main(int argc, char **argv) rt.setPathInfo(); #endif + // Prevents errors like "Unable to wrap GdkPixbuf..." (in nr-filter-image.cpp for example) + Gtk::Main::init_gtkmm_internals(); + // Bug #197475 set_extensions_env(); -- 2.30.2