We need to handle this in a different way for gtk+-2.24.20 and newer as explained at: https://bugs.gentoo.org/show_bug.cgi?id=476100
The patch is here: https://476100.bugs.gentoo.org/attachment.cgi?id=358136 If you have any problems with it, please tell me so. Thanks