I just saw that ScopedPtr was deprecated (an unavailable with GLIBMM_DISABLE_DEPRECATED)... http://fossies.org/dox/glibmm-2.48.1/classGlib_1_1ScopedPtr.html recommends replacing with make_unique_ptr_gfree , but that probably require c++11.
so replacing
target = Glib::ScopedPtr<char>(atom_name).get();
with
target = Glib::make_unique_ptr_gfree(atom_name).get();
might be enough to compile.
Also, the whole_inkscape_wait_for_targets function was a workaround to a bug in gtkmm :
// GTKMM's clipboard::wait_for_targets is buggy and might return bogus, see // // https://bugs.launchpad.net/inkscape/+bug/296778 // http://mail.gnome.org/archives/gtk-devel-list/2009-June/msg00062.html // // for details. Until this has been fixed upstream we will use our own implementation
does anyone know if the underlying function was fixed ? This way we can just throw away the whole function and use Glib::wait_for_targets instead
I just saw that ScopedPtr was deprecated (an unavailable with GLIBMM_ DISABLE_ DEPRECATED) ... fossies. org/dox/ glibmm- 2.48.1/ classGlib_ 1_1ScopedPtr. html recommends replacing with make_unique_ ptr_gfree , but that probably require c++11.
http://
so replacing
target = Glib::ScopedPtr <char>( atom_name) .get();
with
target = Glib::make_ unique_ ptr_gfree( atom_name) .get();
might be enough to compile.
Also, the whole_inkscape_ wait_for_ targets function was a workaround to a bug in gtkmm :
// GTKMM's clipboard: :wait_for_ targets is buggy and might return bogus, see /bugs.launchpad .net/inkscape/ +bug/296778 mail.gnome. org/archives/ gtk-devel- list/2009- June/msg00062. html
//
// https:/
// http://
//
// for details. Until this has been fixed upstream we will use our own implementation
does anyone know if the underlying function was fixed ? This way we can just throw away the whole function and use Glib::wait_ for_targets instead