Comment 3 for bug 1567485

Revision history for this message
Mc (mc...) wrote :

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