Hello Krzysztof,
regarding your fix for this bug:
https://bugs.launchpad.net/inkscape/+bug/1227827
I already posted a solution that I thinks addresses the actual problem better. With that it’s easier later when a clipboard class will be added. Currently the clipboard code directly manipulates the xml tree which is undesireable.
Regards,
Markus