poppler: backport event sub classes from gtk2/

Github: #180
Merge pull request #211 from cosmo0920/poppler-subclass-backport

poppler: backport event sub classes from gtk2/

Patch by cosmo. Thanks!!!