[Kde-bindings] [PATCH] Deferred objects, QGraphicsEffect, long long handler

Paolo Capriotti p.capriotti at gmail.com
Sun Jul 11 17:24:22 UTC 2010


Hi all,
here are 3 patches that fix some problems I'm having with the current qtruby.

Deferred objects (http://gist.github.com/471683): I already submitted
a patch about this problem. This is an updated version for the current
svn trunk. The idea (as explained here:
http://article.gmane.org/gmane.comp.kde.devel.bindings/5715) is that
there is no guarantee that the VALUE associated to an object still
contains meaningful information when the object destructor is called.
So we cannot use value_obj_info from within Binding::deleted. This
patch saves a pointer to the smokeruby_object instance alongside the
ruby VALUE in the pointer map.

QGraphicsEffect (http://gist.github.com/471684): A special case
similar to the others in that function: a QGraphicsItem owns its
QGraphicsEffect's, so they must be marked in the mark phase.

long long handler (http://gist.github.com/471514): There is no handler
for the "long long" type. Not sure why this hasn't popped up before,
but it causes a crash on my machine when calling
QIODevice::bytesAvailable.

Let me know if there are any objections. If not, I'll commit them soon.

Thanks,

Paolo Capriotti



More information about the Kde-bindings mailing list