Turns out the problem is in gtk+. I've filed a bug report and this is the last (relevant) comment on the bug. David